diff --git a/swipe-navigation.js b/swipe-navigation.js index 2897c33..19266ec 100644 --- a/swipe-navigation.js +++ b/swipe-navigation.js @@ -33,7 +33,7 @@ function getConfig(lovelace) { view = appLayout.querySelector('[id="view"]'); swipeNavigation(); } catch { - if (llAttempts < 40) setTimeout(() => getConfig(), 50); + if (llAttempts < 40) setTimeout(() => getConfig(lovelace), 50); } }