Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: pages/exceptions/xmlhttprequest.tmpl

Issue 29874607: Issue 6769 - Avoid hardcoding the URL (Closed)
Patch Set: Fixed some mistakes Created Sept. 5, 2018, 4:59 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pages/exceptions/subdocument.tmpl ('k') | pages/filters/blocking.tmpl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pages/exceptions/xmlhttprequest.tmpl
diff --git a/pages/exceptions/xmlhttprequest.tmpl b/pages/exceptions/xmlhttprequest.tmpl
index 113cb3772326b382a20e56ea9e04f4aca4ecf1bb..b15d914907844eeb3158dc47157dfd8e79915f41 100644
--- a/pages/exceptions/xmlhttprequest.tmpl
+++ b/pages/exceptions/xmlhttprequest.tmpl
@@ -18,7 +18,7 @@ function makerequest() {
var req = new XMLHttpRequest();
req.addEventListener("error", failed);
req.addEventListener("abort", aborted);
- req.open("GET", "https://testpages.adblockplus.org/testcasefiles/xmlhttprequestexception/text.txt", true);
+ req.open("GET", "{{ site_url }}/testcasefiles/xmlhttprequestexception/text.txt", true);
req.onload = function(e) {
if (this.status == 200) {
pagelog(this.responseText);
@@ -52,6 +52,6 @@ document.addEventListener('DOMContentLoaded', makerequest, false);
</div>
</div>
<h3>Filters</h3>
- <pre>||testpages.adblockplus.org/testcasefiles/xmlhttprequestexception/*</pre>
- <pre>@@testpages.adblockplus.org/testcasefiles/xmlhttprequestexception/$xmlhttprequest</pre>
+ <pre>||{{ site_url|strip_proto }}/testcasefiles/xmlhttprequestexception/*</pre>
+ <pre>@@{{ site_url|strip_proto }}/testcasefiles/xmlhttprequestexception/$xmlhttprequest</pre>
</section>
« no previous file with comments | « pages/exceptions/subdocument.tmpl ('k') | pages/filters/blocking.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld