Skip to content

Commit

Permalink
Merge pull request #19 from Villhellm/title-change-option
Browse files Browse the repository at this point in the history
null check for title element
  • Loading branch information
Villhellm authored Sep 9, 2020
2 parents 4dc5242 + 7b6aca0 commit adfd894
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/custom-sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ function getSidebar() {
root = root && root.querySelector("app-drawer-layout app-drawer");
root = root && root.querySelector("ha-sidebar");
root = root && root.shadowRoot;
TitleElement = root.querySelector('span');
TitleElement = root && root.querySelector('span') ? root.querySelector('span') : null ;
root = root && root.querySelector("paper-listbox");
return root;
}
Expand Down

0 comments on commit adfd894

Please sign in to comment.