♻️ Add search to JS asset bundle

This commit is contained in:
James Panther
2022-01-19 12:13:42 +11:00
parent 0842766212
commit dcd5dd0ec9
3 changed files with 7 additions and 9 deletions
+1 -3
View File
@@ -104,9 +104,7 @@ function fetchJSON(path, callback) {
}
function buildIndex() {
var baseURL = document
.querySelector('script[data-id="fusejs"][data-url]')
.getAttribute("data-url");
var baseURL = wrapper.getAttribute("data-url");
fetchJSON(baseURL + "index.json", function (data) {
var options = {
shouldSort: true,