From 99a93d77b3e4e2e85c67cd777c8079d2d8a38bb8 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 14 Sep 2018 10:30:12 +0300 Subject: [PATCH] fix(cloudcmd) onUpdateFound: doubled prefix for cloudcmd.common.js (#188) --- client/cloudcmd.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/cloudcmd.js b/client/cloudcmd.js index 8a866a37..177e308d 100644 --- a/client/cloudcmd.js +++ b/client/cloudcmd.js @@ -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);