mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
fix(cloudcmd) onUpdateFound: doubled prefix for cloudcmd.common.js (#188)
This commit is contained in:
parent
d0f528892b
commit
99a93d77b3
1 changed files with 3 additions and 3 deletions
|
|
@ -47,12 +47,12 @@ function getPrefix(prefix) {
|
|||
}
|
||||
|
||||
const onUpdateFound = wraptile(async (config) => {
|
||||
const {prefix} = config;
|
||||
const {DOM} = window;
|
||||
const prefix = getPrefix(config.prefix);
|
||||
const js = promisify(DOM.load.js);
|
||||
|
||||
await js(`${prefix}dist/cloudcmd.common.js`);
|
||||
await js(`${prefix}dist/cloudcmd.js`);
|
||||
await js(`${prefix}/dist/cloudcmd.common.js`);
|
||||
await js(`${prefix}/dist/cloudcmd.js`);
|
||||
|
||||
DOM.Events.removeAll();
|
||||
window.CloudCmd(config);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue