summaryrefslogtreecommitdiff
path: root/web/js/index/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/js/index/main.js')
-rw-r--r--web/js/index/main.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/js/index/main.js b/web/js/index/main.js
index b3e9317c..5b576b6a 100644
--- a/web/js/index/main.js
+++ b/web/js/index/main.js
@@ -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);