This commit is contained in:
zhanghongwei 2021-08-09 21:58:18 +08:00
commit 2aa98c4f17
2 changed files with 3 additions and 4 deletions

View File

@ -282,6 +282,7 @@ function getControlWsUrl(host) {
function initWSocket() {
const host = document.location.host;
const url = getControlWsUrl(host);
document.title = `数瑞智能合约节点管理中心(${host}`;
// console.log("connect ws:" + url);
global.wssocket = createWssocket(url, function () {
getSession();
@ -523,7 +524,4 @@ function addNodeUnit(obj) {
}
option.value = obj.key;
x.add(option, null);
}
}

View File

@ -142,6 +142,7 @@ function getControlWsUrl(host) {
function initWSocket() {
console.log("[OnlineIDE.js] initWSocket : ");
let host = document.location.host;
document.title = `数瑞智能合约在线编辑器(${host}`
let url = getControlWsUrl(
global.urlparam && global.urlparam['nodeAddr'] ? global.urlparam['nodeAddr'] : host);
// console.log("connect ws:" + url);