]> _ Git - fluidbook-html5.git/commitdiff
wip #6269 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 15 Sep 2023 08:04:42 +0000 (10:04 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 15 Sep 2023 08:04:42 +0000 (10:04 +0200)
js/libs/fluidbook/fluidbook.search.js

index b4b11e950436bfc025a4f8a55265701ee12eeccd..c516454f2b493f6763dc62306f0e12d714e7832f 100644 (file)
@@ -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 {