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();
});
};
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 {
_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 {