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 | |
parent | f8bd0eca6a92618fc38d6db5c26114111d2df37f (diff) |
fixed html titles
Diffstat (limited to 'web')
-rw-r--r-- | web/js/index/main.js | 4 | ||||
-rw-r--r-- | web/js/kvm/session.js | 5 |
2 files changed, 8 insertions, 1 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); diff --git a/web/js/kvm/session.js b/web/js/kvm/session.js index bcc97fab..cbf268d9 100644 --- a/web/js/kvm/session.js +++ b/web/js/kvm/session.js @@ -32,8 +32,11 @@ function Session() { ${text} `; if (state.meta.server && state.meta.server.host) { - document.title = "Pi-KVM Session - " + state.meta.server.host; $("kvmd-meta-server-host").innerHTML = "Server: " + state.meta.server.host; + document.title = "Pi-KVM Session: " + state.meta.server.host; + } else { + $("kvmd-meta-server-host").innerHTML = ""; + document.title = "Pi-KVM Session"; } } $("about-version-kvmd").innerHTML = state.version.kvmd; |