diff --git a/client/src/ajax.js b/client/src/ajax.js index a80cf5670c..20ca622056 100644 --- a/client/src/ajax.js +++ b/client/src/ajax.js @@ -29,6 +29,7 @@ /** @module ajax */ import $ from 'jquery'; +import Utils from 'utils'; let isConfigured = false; /** @type {number} */ @@ -62,7 +63,7 @@ let onTimeout; * @property {boolean} [resolveWithXhr] To resolve with `XMLHttpRequest`. */ -const baseUrl = Espo.Utils.obtainBaseUrl(); +const baseUrl = Utils.obtainBaseUrl(); // noinspection JSUnusedGlobalSymbols /** diff --git a/client/src/app.js b/client/src/app.js index 0392d961b0..d19806ff74 100644 --- a/client/src/app.js +++ b/client/src/app.js @@ -251,7 +251,7 @@ class App { viewFactory = null /** - * @type function(string, function(View)) + * @type {function(string, function(View))} * @private */ viewLoader = null @@ -1442,7 +1442,7 @@ class App { files.push(file); }); - let baseUrl = Espo.Utils.obtainBaseUrl(); + let baseUrl = Utils.obtainBaseUrl(); let timestamp = this.loader.getCacheTimestamp(); let promiseList = files.map(file => {