diff options
author | Devaev Maxim <[email protected]> | 2018-11-24 07:54:29 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-11-24 07:54:29 +0300 |
commit | 610237de15c3ca2001d1e3a67c61d78f6fbda880 (patch) | |
tree | 6d7b607cb8dcab2740a1a6ec514d2baf66647f5b /web/js/index/main.js | |
parent | f8bd0eca6a92618fc38d6db5c26114111d2df37f (diff) |
fixed html titles
Diffstat (limited to 'web/js/index/main.js')
-rw-r--r-- | web/js/index/main.js | 4 |
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); |