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: Created Sept. 4, 2018, 4:23 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
Index: pages/exceptions/xmlhttprequest.tmpl
diff --git a/pages/exceptions/xmlhttprequest.tmpl b/pages/exceptions/xmlhttprequest.tmpl
index 113cb3772326b382a20e56ea9e04f4aca4ecf1bb..4d19ce0689a1bd7a5bc772f46bc2f6a086ced406 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", "https://{{ 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>

Powered by Google App Engine
This is Rietveld