This commit is contained in:
Frank.R.Wu 2021-06-16 23:54:23 +08:00
parent f2ac06aea6
commit 2f2cf059be
2 changed files with 8 additions and 1 deletions

View File

@ -267,6 +267,9 @@ function getControlWsUrl(host) {
path += "SCIDE/";
}
path += "SCExecutor";
if (isBaaS) {
path = path.replace("ide/", "")
}
return prefix + host + path;
}

View File

@ -129,9 +129,13 @@ function getControlWsUrl(host) {
}
let path = document.location.pathname.lastIndexOf("/");
path = document.location.pathname.substr(0, path + 1);
if (path.indexOf("SCIDE") < 0)
if (path.indexOf("SCIDE") < 0) {
path += "SCIDE/";
}
path += "SCExecutor";
if (isBaaS) {
path = path.replace("ide/", "")
}
return prefix + host + path;
}