From ac2f07c77ad7e4131798896fa2e96d30bdb868a3 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 22 Feb 2022 19:41:33 +0100 Subject: [PATCH] wip #5120 --- resources/js/search.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/js/search.js b/resources/js/search.js index f7a1b1f..f562d5e 100644 --- a/resources/js/search.js +++ b/resources/js/search.js @@ -22,6 +22,8 @@ export default () => ({ const data = await fetch(this.$el.dataset.searchindex); const index = await data.text(); + console.log(JSON.parse(index)); + // Delay miniSearch initialisation so there's less chance of animations stuttering during page loads window.minisearch = this.miniSearch = MiniSearch.loadJSON(index, this.setup); -- 2.39.5