mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
refactor: client: DIR_CLIENT_MODULES -> DIR_MODULES
This commit is contained in:
parent
656000e7e0
commit
d7e43d8a18
2 changed files with 3 additions and 3 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue