feat: change title
change title when changing nodes or applications
This commit is contained in:
parent
fe13a53e19
commit
d0dc3f4e0b
@ -313,6 +313,7 @@ function displayOutput(obj) {
|
||||
|
||||
function initWSocket() {
|
||||
let host = $("#urlInput")[0].value;
|
||||
document.title = `数瑞浏览器(${host})`
|
||||
if (!host.startsWith("ws")) {
|
||||
if (location.href.startsWith("https")) {
|
||||
host = "wss://" + host;
|
||||
@ -375,6 +376,7 @@ function changeApp() {
|
||||
return;
|
||||
}
|
||||
console.log(global.currentContract);
|
||||
document.title = `数瑞浏览器(${global.currentContract} - ${$("#urlInput")[0].value})`
|
||||
changeAppInternal(needRender(global.currentContract));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user