From 5c5213307e62cc07ed94356c2357fc87f882a913 Mon Sep 17 00:00:00 2001
From: bb1950328 <bb1950328@gmail.com>
Date: Mon, 01 Mar 2021 15:09:01 +0000
Subject: [PATCH] convert string concatenation to proper URL concatenation
---
assets/js/search.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/assets/js/search.js b/assets/js/search.js
index a2878ea..ea31a5d 100644
--- a/assets/js/search.js
+++ b/assets/js/search.js
@@ -195,7 +195,7 @@
}
window.addEventListener('load', function() {
- fetch(`${rootURL}index.json`)
+ fetch(new URL("index.json", rootURL).href)
.then(response => response.json())
.then(function(data) {
data = data.length ? data : [];
--
Gitblit v1.10.0