]> _ Git - odl.git/commitdiff
wip #5120
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 22 Feb 2022 18:13:15 +0000 (19:13 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 22 Feb 2022 18:13:15 +0000 (19:13 +0100)
resources/js/search.js

index 020c6cc156082157b12cd86990b54dc537bf956b..e143a8c131a0f606942bd6764cbd3649aee6fc6e 100644 (file)
@@ -21,12 +21,9 @@ export default () => ({
         // We need the URL from the HTML because it gets properly updated when exporting the final version
         const data = await fetch(this.$el.dataset.searchindex);
         const index = await data.text();
-        console.log(index);
 
         // Delay miniSearch initialisation so there's less chance of animations stuttering during page loads
-        setTimeout(() => {
-            window.minisearch = this.miniSearch = MiniSearch.loadJSON(index, this.setup);
-        }, 4000);
+        window.minisearch = this.miniSearch = MiniSearch.loadJSON(index, this.setup);
 
         this.medialibrary = this.$el.dataset.medialibrary;
     },