Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Commit

Permalink
Fix run condition
Browse files Browse the repository at this point in the history
  • Loading branch information
maykar authored Nov 5, 2020
1 parent 83f8c62 commit ec3c000
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kiosk-mode.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function kiosk_mode() {
hide_sidebar = queryStringsSet ? hide_sidebar : config.kiosk || config.hide_sidebar;

// Only run if needed.
if (queryStringsSet) {
if (hide_sidebar || hide_header) {
const lovelace = main.querySelector("ha-panel-lovelace");
const huiRoot = lovelace ? lovelace.shadowRoot.querySelector("hui-root").shadowRoot : null;

Expand Down

0 comments on commit ec3c000

Please sign in to comment.