fix: path bug
This commit is contained in:
4
js/cm.js
4
js/cm.js
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user