From: Vincent Vanwaelscappel Date: Fri, 15 Sep 2023 08:04:42 +0000 (+0200) Subject: wip #6269 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=154749f2ab87a7100db296dc80afcb661de03ce6;p=fluidbook-html5.git wip #6269 @0.25 --- diff --git a/js/libs/fluidbook/fluidbook.search.js b/js/libs/fluidbook/fluidbook.search.js index b4b11e95..c516454f 100644 --- a/js/libs/fluidbook/fluidbook.search.js +++ b/js/libs/fluidbook/fluidbook.search.js @@ -243,7 +243,7 @@ FluidbookSearch.prototype = { let __loadTexts = function () { $this._loadTexts(function () { if ($this.highlightEnabled) { - loadJSLibrary('data/search.highlight.js?j=' + this.fluidbook.settings.cacheDate, function () { + loadJSLibrary($this.fluidbook.loader.getURL('data/search.highlight.js?j=' + this.fluidbook.settings.cacheDate), function () { $this.indexLoaded = true; callback(); }); @@ -255,7 +255,7 @@ FluidbookSearch.prototype = { }; if (!this.robust) { - loadJSLibrary('data/search.index.js?j=' + this.fluidbook.settings.cacheDate, function () { + loadJSLibrary(this.fluidbook.loader.getURL('data/search.index.js?j=' + this.fluidbook.settings.cacheDate), function () { __loadTexts(); }); } else { @@ -265,7 +265,7 @@ FluidbookSearch.prototype = { _loadTexts: function (callback) { if (this.robust || this.fluidbook.settings.searchWordSelectionAlgorithm === 'expression') { - loadJSLibrary('data/search.texts.js?j=' + this.fluidbook.settings.cacheDate, function () { + loadJSLibrary(this.fluidbook.loader.getURL('data/search.texts.js?j=' + this.fluidbook.settings.cacheDate), function () { callback(); }); } else {