From d7e43d8a188112a2e6fadf1da2360fdec14d41be Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 30 Jan 2023 13:01:08 +0200 Subject: [PATCH] refactor: client: DIR_CLIENT_MODULES -> DIR_MODULES --- client/client.js | 4 ++-- client/load-module.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/client.js b/client/client.js index b385e7ce..d92bc7e9 100644 --- a/client/client.js +++ b/client/client.js @@ -60,7 +60,7 @@ function CloudCmdProto(DOM) { this.prefixSocket = ''; this.prefixURL = ''; this.DIR_CLIENT = '/dist/'; - this.DIR_CLIENT_MODULES = this.DIR_CLIENT + 'modules/'; + this.DIR_MODULES = this.DIR_CLIENT + 'modules/'; this.MIN_ONE_PANEL_WIDTH = 1155; this.HOST = location.origin || location.protocol + '//' + location.host; @@ -130,7 +130,7 @@ function CloudCmdProto(DOM) { CloudCmd.MIN_ONE_PANEL_WIDTH = Infinity; if (!document.body.scrollIntoViewIfNeeded) - await load.js(prefix + CloudCmd.DIR_CLIENT_MODULES + 'polyfill.js'); + await load.js(prefix + CloudCmd.DIR_MODULES + 'polyfill.js'); await initModules(); await baseInit(); diff --git a/client/load-module.js b/client/load-module.js index 04d0807d..1e897962 100644 --- a/client/load-module.js +++ b/client/load-module.js @@ -29,7 +29,7 @@ module.exports = function loadModule(params) { exec(doBefore); const {prefix} = CloudCmd; - const pathFull = prefix + CloudCmd.DIR_CLIENT_MODULES + path + '.js'; + const pathFull = prefix + CloudCmd.DIR_MODULES + path + '.js'; return loadJS(pathFull).then(async () => { const newModule = async (f) => f && f();