Forráskód Böngészése

Set title to include hostname if hostname is present

Christopher Mullins 6 éve
szülő
commit
1799599ce9
2 módosított fájl, 8 hozzáadás és 2 törlés
  1. 2 2
      dist/index.html.gz.h
  2. 6 0
      web/src/js/script.js

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 2 - 2
dist/index.html.gz.h


+ 6 - 0
web/src/js/script.js

@@ -584,6 +584,12 @@ var loadSettings = function() {
       }
     });
 
+    if (val.hostname) {
+      var title = "MiLight Hub: " + val.hostname;
+      document.title = title;
+      $('.navbar-brand').html(title);
+    }
+
     if (val.group_id_aliases) {
       aliasesSelectize.clearOptions();
       Object.entries(val.group_id_aliases).forEach(function(entry) {