From: Vincent Vanwaelscappel Date: Tue, 22 Feb 2022 18:41:33 +0000 (+0100) Subject: wip #5120 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=ac2f07c77ad7e4131798896fa2e96d30bdb868a3;p=odl.git wip #5120 --- 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);