fix: path bug

This commit is contained in:
CaiHQ
2021-10-26 11:22:45 +08:00
parent a117a53b0b
commit e96048de2a
8 changed files with 2837 additions and 18 deletions

View File

@@ -75,9 +75,7 @@ var getControlWsUrl = function (host) {
var prefix = "ws://";
if (document.location.href.startsWith("https"))
prefix = "wss://";
var path = document.location.pathname.lastIndexOf("/");
path = document.location.pathname.substr(0, path + 1);
path += "SCExecutor";
var path = "/SCIDE/SCExecutor";
return prefix + host + path;
};
var initWSocket = function () {