From 0860ad5ae37d2c769283d40a4499cf370778196e Mon Sep 17 00:00:00 2001 From: Ryan Meek <25127328+maykar@users.noreply.github.com> Date: Wed, 18 Nov 2020 12:06:49 -0500 Subject: [PATCH] Update swipe-navigation.js --- swipe-navigation.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/swipe-navigation.js b/swipe-navigation.js index ff2719d..8bec7f9 100644 --- a/swipe-navigation.js +++ b/swipe-navigation.js @@ -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."); } }