From 610237de15c3ca2001d1e3a67c61d78f6fbda880 Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Sat, 24 Nov 2018 07:54:29 +0300 Subject: fixed html titles --- web/js/index/main.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'web/js/index/main.js') 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); -- cgit v1.2.3