From bd914b69b1c4d6b311c84d5825fe223791316021 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 22 Feb 2022 18:59:44 +0100 Subject: [PATCH] wip #5120 --- resources/js/search.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/js/search.js b/resources/js/search.js index c6e0f29..54e4b0f 100644 --- a/resources/js/search.js +++ b/resources/js/search.js @@ -23,8 +23,7 @@ export default () => ({ // Delay miniSearch initialisation so there's less chance of animations stuttering during page loads setTimeout(() => { - window.minisearch = this.miniSearch = new MiniSearch(this.setup); - this.miniSearch.loadJSON(data, this.setup); + window.minisearch = this.miniSearch = MiniSearch.loadJSON(data, this.setup); }, 4000); this.medialibrary = this.$el.dataset.medialibrary; -- 2.39.5