Skip to content
This repository was archived by the owner on May 26, 2022. It is now read-only.

Commit 9bb52f6

Browse files
authored
Lower config timeout & better error handling
1 parent 4bfe630 commit 9bb52f6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

kiosk-mode.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,12 @@ class KioskMode {
2424
const llConfig = lovelace.lovelace.config;
2525
const config = llConfig.kiosk_mode || {};
2626
this.processConfig(lovelace, config);
27-
} catch {
28-
if (this.llAttempts < 300) {
27+
} catch (e) {
28+
if (this.llAttempts < 200) {
2929
setTimeout(() => this.getConfig(lovelace), 50);
3030
} else {
3131
console.log("Lovelace config not found, continuing with default configuration.");
32+
console.log(e);
3233
this.processConfig(lovelace, {});
3334
}
3435
}

0 commit comments

Comments
 (0)