fix
This commit is contained in:
parent
f2ac06aea6
commit
2f2cf059be
@ -267,6 +267,9 @@ function getControlWsUrl(host) {
|
|||||||
path += "SCIDE/";
|
path += "SCIDE/";
|
||||||
}
|
}
|
||||||
path += "SCExecutor";
|
path += "SCExecutor";
|
||||||
|
if (isBaaS) {
|
||||||
|
path = path.replace("ide/", "")
|
||||||
|
}
|
||||||
return prefix + host + path;
|
return prefix + host + path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -129,9 +129,13 @@ function getControlWsUrl(host) {
|
|||||||
}
|
}
|
||||||
let path = document.location.pathname.lastIndexOf("/");
|
let path = document.location.pathname.lastIndexOf("/");
|
||||||
path = document.location.pathname.substr(0, path + 1);
|
path = document.location.pathname.substr(0, path + 1);
|
||||||
if (path.indexOf("SCIDE") < 0)
|
if (path.indexOf("SCIDE") < 0) {
|
||||||
path += "SCIDE/";
|
path += "SCIDE/";
|
||||||
|
}
|
||||||
path += "SCExecutor";
|
path += "SCExecutor";
|
||||||
|
if (isBaaS) {
|
||||||
|
path = path.replace("ide/", "")
|
||||||
|
}
|
||||||
return prefix + host + path;
|
return prefix + host + path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user