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

Commit

Permalink
Fix TypeError on no config
Browse files Browse the repository at this point in the history
  • Loading branch information
maykar authored Jun 18, 2019
1 parent 45cc364 commit a845f67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swipe-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ root = (root && root.shadowRoot) || root;
root = root && root.querySelector("ha-panel-lovelace");
root = root && root.shadowRoot;
root = root && root.querySelector("hui-root");
const config = root.lovelace.config.swipe_nav;
const config = root.lovelace.config.swipe_nav || {};

let animate = config.animate !== undefined ? config.animate : "none";
let wrap = config.wrap !== undefined ? config.wrap : true;
Expand Down

0 comments on commit a845f67

Please sign in to comment.