feat: change title
change title with node addr
This commit is contained in:
parent
e600c386da
commit
de634576fd
@ -276,7 +276,7 @@ function getControlWsUrl(host) {
|
|||||||
function initWSocket() {
|
function initWSocket() {
|
||||||
const host = document.location.host;
|
const host = document.location.host;
|
||||||
const url = getControlWsUrl(host);
|
const url = getControlWsUrl(host);
|
||||||
document.title = `数瑞智能合约节点管理中心${host}`;
|
document.title = `数瑞智能合约节点管理中心(${host})`;
|
||||||
// console.log("connect ws:" + url);
|
// console.log("connect ws:" + url);
|
||||||
global.wssocket = createWssocket(url, function () {
|
global.wssocket = createWssocket(url, function () {
|
||||||
getSession();
|
getSession();
|
||||||
@ -518,7 +518,4 @@ function addNodeUnit(obj) {
|
|||||||
}
|
}
|
||||||
option.value = obj.key;
|
option.value = obj.key;
|
||||||
x.add(option, null);
|
x.add(option, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -142,6 +142,7 @@ function getControlWsUrl(host) {
|
|||||||
function initWSocket() {
|
function initWSocket() {
|
||||||
console.log("[OnlineIDE.js] initWSocket : ");
|
console.log("[OnlineIDE.js] initWSocket : ");
|
||||||
let host = document.location.host;
|
let host = document.location.host;
|
||||||
|
document.title = `数瑞智能合约在线编辑器(${host})`
|
||||||
let url = getControlWsUrl(
|
let url = getControlWsUrl(
|
||||||
global.urlparam && global.urlparam['nodeAddr'] ? global.urlparam['nodeAddr'] : host);
|
global.urlparam && global.urlparam['nodeAddr'] ? global.urlparam['nodeAddr'] : host);
|
||||||
// console.log("connect ws:" + url);
|
// console.log("connect ws:" + url);
|
||||||
|
Loading…
Reference in New Issue
Block a user