From: Vincent Vanwaelscappel Date: Fri, 15 Sep 2023 09:02:14 +0000 (+0200) Subject: wait #6269 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=bae39d6c161979d6dcf8c3404b176185144faf80;p=fluidbook-html5.git wait #6269 @0.5 --- diff --git a/js/libs/fluidbook/fluidbook.search.js b/js/libs/fluidbook/fluidbook.search.js index eb04dc9d..d8113d76 100644 --- a/js/libs/fluidbook/fluidbook.search.js +++ b/js/libs/fluidbook/fluidbook.search.js @@ -229,10 +229,10 @@ FluidbookSearch.prototype = { return callback(); } var $this = this; - 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 () { $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(); }); @@ -246,7 +246,7 @@ FluidbookSearch.prototype = { _loadTexts: function (callback) { if (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 {