diff options
author | amzrk2 | 2020-07-24 09:11:02 +0800 |
---|---|---|
committer | amzrk2 | 2020-07-24 09:11:02 +0800 |
commit | fa1c6b5ae768ef619e9ced7419a60f66e5010007 (patch) | |
tree | 79480be341245335eaf6474c2bc04029fe489966 /assets | |
parent | 0c502fd74ff7898624f87a402161527802d5b2bb (diff) | |
download | hugo-theme-fuji-fa1c6b5ae768ef619e9ced7419a60f66e5010007.tar.gz hugo-theme-fuji-fa1c6b5ae768ef619e9ced7419a60f66e5010007.tar.bz2 hugo-theme-fuji-fa1c6b5ae768ef619e9ced7419a60f66e5010007.zip |
Fix search index relative link issue
Diffstat (limited to 'assets')
-rw-r--r-- | assets/js/fuji.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/js/fuji.js b/assets/js/fuji.js index 8074e2e..994119b 100644 --- a/assets/js/fuji.js +++ b/assets/js/fuji.js @@ -132,7 +132,7 @@ if (urlParams.has('s')) { document.querySelector('.search-input input').setAttribute('value', key); // get search index from json let xhr = new XMLHttpRequest(); - xhr.open('GET', '/index.json', true); + xhr.open('GET', 'index.json', true); xhr.responseType = 'json'; xhr.onerror = () => { infoElements[2].removeAttribute('style'); |