summaryrefslogtreecommitdiff
path: root/web/js/kvm/session.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/js/kvm/session.js')
-rw-r--r--web/js/kvm/session.js5
1 files changed, 4 insertions, 1 deletions
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;