Skip to content
This repository has been archived by the owner on Oct 8, 2020. It is now read-only.

Commit

Permalink
lovelace
Browse files Browse the repository at this point in the history
  • Loading branch information
maykar authored May 20, 2020
1 parent a5a4ad4 commit 1988a6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ export class CustomHeaderConfig {
lovelace = document
.querySelector('body > home-assistant')
.shadowRoot.querySelector('home-assistant-main')
.shadowRoot.querySelector('app-drawer-layout > partial-panel-resolver > ha-panel-lovelace').lovelace;
.shadowRoot.querySelector('app-drawer-layout > partial-panel-resolver > ha-panel-lovelace');
if (!lovelace) return;
lovelace = lovelace.lovelace;
const haElem = ha_elements();
if (!haElem) return;
clearTimeout(window.customHeaderTempTimeout);
Expand Down

0 comments on commit 1988a6e

Please sign in to comment.