Browse Source

Add hostname to web interface page title

fastled
Xose Pérez 8 years ago
parent
commit
c60d8af64e
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      code/html/custom.js

+ 5
- 1
code/html/custom.js View File

@ -79,8 +79,12 @@ function processData(data) {
// title // title
if ("app" in data) { if ("app" in data) {
document.title = data.app;
$(".pure-menu-heading").html(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 // automatic assign


Loading…
Cancel
Save