From 4aca05ef578d0cb0f08470a0cf70ef06a0436ad8 Mon Sep 17 00:00:00 2001
From: weru <fromweru@gmail.com>
Date: Sun, 31 Jan 2021 04:25:43 +0000
Subject: [PATCH] fix fetch url

---
 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 c5f22d3..a2878ea 100644
--- a/assets/js/search.js
+++ b/assets/js/search.js
@@ -195,7 +195,7 @@
 }
 
 window.addEventListener('load', function() { 
-  fetch("/index.json")
+  fetch(`${rootURL}index.json`)
   .then(response => response.json())
   .then(function(data) {
     data = data.length ? data : [];

--
Gitblit v1.10.0