From d3d940d9c908e4b2b8eef10e15b74949fc06bfe2 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Wed, 25 Oct 2023 11:03:29 +0300 Subject: [PATCH] fix --- client/src/ajax.js | 3 ++- client/src/app.js | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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 => {