refactor: client: DIR_CLIENT_MODULES -> DIR_MODULES

This commit is contained in:
coderaiser 2023-01-30 13:01:08 +02:00
parent 656000e7e0
commit d7e43d8a18
2 changed files with 3 additions and 3 deletions

View file

@ -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();

View file

@ -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();