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