Merge pull request #548 from brunoz78/tab-hostname

web: name the browser tab after the switch hostname
This commit is contained in:
René van Dorst authored and GitHub committed 2026-10-11 13:50:09 +00:00
commit 0a996fa6d0
2 files changed
+11 -3

No files matched your search

+5 -1
View File
@@ -1052,7 +1052,11 @@ function renderInfo(){
if(v==null||v==="")return;
tb.appendChild(h("tr",null,[h("td",{class:"mut",text:t(r[0])}),h("td",{class:"mono",text:String(v)})]));
});
if(S.info.hostname)$("brandname").textContent=$("brandname").title=S.info.hostname;
if(S.info.hostname){
$("brandname").textContent=$("brandname").title=document.title=S.info.hostname;
// Remembered per switch (each has its own origin) for the login page tab
try{localStorage.setItem("rtl_host",S.info.hostname);}catch(e){}
}
if(S.info.sw_ver)$("fver").textContent="RTLPlayground "+S.info.sw_ver;
}
function pollInfo(){