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

Unified Diff: pages/filters/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/filters/websocket.tmpl ('k') | pages/frames/testcase-img-05.tmpl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pages/filters/xmlhttprequest.tmpl
diff --git a/pages/filters/xmlhttprequest.tmpl b/pages/filters/xmlhttprequest.tmpl
index da57e1e404f4c5ddeeec8010cdf144408511fc32..8c7e37a457fe1fd66c0852a3e5b83667881ab57f 100644
--- a/pages/filters/xmlhttprequest.tmpl
+++ b/pages/filters/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/xmlhttprequest/text.txt", true);
+ req.open("GET", "{{ site_url }}/testcasefiles/xmlhttprequest/text.txt", true);
req.onload = function(e) {
if (this.status == 200) {
pagelog(this.responseText);
@@ -50,5 +50,5 @@ document.addEventListener('DOMContentLoaded', makerequest, false);
</div>
</div>
<h3>Filters</h3>
- <pre>testpages.adblockplus.org/testcasefiles/xmlhttprequest/$xmlhttprequest</pre>
+ <pre>{{ site_url|strip_proto }}/testcasefiles/xmlhttprequest/$xmlhttprequest</pre>
</section>
« no previous file with comments | « pages/filters/websocket.tmpl ('k') | pages/frames/testcase-img-05.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld