Skip to content

Commit

Permalink
Check for menu button
Browse files Browse the repository at this point in the history
  • Loading branch information
j-a-n committed Jul 4, 2024
1 parent 27a43dc commit b5d37c9
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions wallpanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class ScreenWakeLock {
}
}

const version = "4.25.2";
const version = "4.25.4";
const defaultConfig = {
enabled: false,
enabled_on_tabs: [],
Expand Down Expand Up @@ -499,11 +499,13 @@ function setSidebarHidden(hidden) {
const menuButton = panelLovelace.shadowRoot
.querySelector("hui-root").shadowRoot
.querySelector("ha-menu-button");
if (hidden) {
menuButton.style.display = "none";
}
else {
menuButton.style.removeProperty("display");
if (menuButton) {
if (hidden) {
menuButton.style.display = "none";
}
else {
menuButton.style.removeProperty("display");
}
}
}
catch (e) {
Expand Down

0 comments on commit b5d37c9

Please sign in to comment.