fixed html titles

This commit is contained in:
Devaev Maxim
2018-11-24 07:54:29 +03:00
parent f8bd0eca6a
commit 610237de15
2 changed files with 8 additions and 1 deletions

View File

@@ -49,6 +49,10 @@ function __loadKvmdInfo() {
if (info.meta && info.meta.server && info.meta.server.host) {
$("kvmd-meta-server-host").innerHTML = info.meta.server.host;
document.title = "Pi-KVM Index: " + info.meta.server.host;
} else {
$("kvmd-meta-server-host").innerHTML = "";
document.title = "Pi-KVM Index";
}
} else {
setTimeout(__loadKvmdInfo, 1000);