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

Commit

Permalink
Update swipe-navigation.js
Browse files Browse the repository at this point in the history
  • Loading branch information
maykar authored Nov 18, 2020
1 parent 968b6e3 commit 0860ad5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions swipe-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ function getElements() {
root = ll.shadowRoot.querySelector("hui-root");
appLayout = root.shadowRoot.querySelector("ha-app-layout");
} catch {
attempts++
setTimeout(() => getElements(), 50)
attempts++;
setTimeout(() => getElements(), 50);
}
} else if (ll && !root) {
console.log("hui-root not found.")
console.log("hui-root not found.");
} else if (ll && !appLayout) {
console.log("ha-app-layout not found.")
console.log("ha-app-layout not found.");
}
}

Expand Down

0 comments on commit 0860ad5

Please sign in to comment.