aboutsummaryrefslogtreecommitdiff
path: root/static/js/instantpage.ts
diff options
context:
space:
mode:
Diffstat (limited to 'static/js/instantpage.ts')
-rw-r--r--static/js/instantpage.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/static/js/instantpage.ts b/static/js/instantpage.ts
index 5d2f59a..1b5ed36 100644
--- a/static/js/instantpage.ts
+++ b/static/js/instantpage.ts
@@ -72,7 +72,7 @@
const prefetcher = document.createElement("link");
prefetcher.rel = "custom-prefetch";
prefetcher.href = url;
- const selector = `link[rel="${prefetcher.rel}"][href="${prefetcher.href}"]`;
+ const selector = 'link[rel="'.concat(prefetcher.rel, '"][href="').concat(prefetcher.href, '"]');
const prefetched = document.head.contains(document.querySelector(selector));
if (prefetched) { return; }
document.head.appendChild(prefetcher);