fix: path bug
This commit is contained in:
@@ -127,15 +127,7 @@ function getControlWsUrl(host) {
|
||||
if (document.location.href.startsWith("https")) {
|
||||
prefix = "wss://";
|
||||
}
|
||||
let path = document.location.pathname.lastIndexOf("/");
|
||||
path = document.location.pathname.substr(0, path + 1);
|
||||
if (path.indexOf("SCIDE") < 0) {
|
||||
path += "SCIDE/";
|
||||
}
|
||||
path += "SCExecutor";
|
||||
if (isBaaS) {
|
||||
path = path.replace("ide/", "")
|
||||
}
|
||||
path = "/SCIDE/SCExecutor";
|
||||
return prefix + host + path;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user