Explorar el Código

Hide buttons - #21

jamesread hace 4 años
padre
commit
36b44cd5b3
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  1. 1 3
      webui/main.js

+ 1 - 3
webui/main.js

@@ -67,9 +67,7 @@ function processWebuiSettingsJson (settings) {
     document.head.appendChild(themeCss);
   }
 
-  if (settings.HideNavigation) {
-    document.querySelector('#switcher').display = 'none';
-  }
+  document.querySelector('#switcher').hidden = settings.HideNavigation
 }
 
 setupSections();