From c60d8af64eb8f1a501a9af49c8cc47dd4aa88500 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Thu, 6 Oct 2016 22:35:22 +0200 Subject: [PATCH] Add hostname to web interface page title --- code/html/custom.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/html/custom.js b/code/html/custom.js index bdd44729..248f226a 100644 --- a/code/html/custom.js +++ b/code/html/custom.js @@ -79,8 +79,12 @@ function processData(data) { // title if ("app" in data) { - document.title = data.app; $(".pure-menu-heading").html(data.app); + var title = data.app; + if ("hostname" in data) { + title = data.hostname + " - " + title; + } + document.title = title; } // automatic assign