From ea3942373a994a4716a38de7bc67bdd353443c4b Mon Sep 17 00:00:00 2001 From: Siebe Vander Henst Date: Tue, 7 Jan 2025 15:30:20 +0100 Subject: [PATCH 1/2] add empty catch --- src/app/authentication.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/app/authentication.js b/src/app/authentication.js index 82e2f5f..bd7f655 100644 --- a/src/app/authentication.js +++ b/src/app/authentication.js @@ -22,11 +22,14 @@ class Authentication { } initialize() { - hybrid.appLoaded().then((radioToken) => { - if (radioToken) { - this.setToken(radioToken) - } - }) + hybrid + .appLoaded() + .then((radioToken) => { + if (radioToken) { + this.setToken(radioToken) + } + }) + .catch(() => {}) hybrid.on('authenticated', ({ radioToken }) => { this.setToken(radioToken) }) From ffda7eb6ab53a033d8eb67637a5c578688956c77 Mon Sep 17 00:00:00 2001 From: Siebe Vander Henst Date: Tue, 7 Jan 2025 15:37:51 +0100 Subject: [PATCH 2/2] add comment --- src/app/authentication.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/authentication.js b/src/app/authentication.js index bd7f655..f494c10 100644 --- a/src/app/authentication.js +++ b/src/app/authentication.js @@ -29,7 +29,7 @@ class Authentication { this.setToken(radioToken) } }) - .catch(() => {}) + .catch(() => {}) // We don't have to do anything if there is no radio token at app load hybrid.on('authenticated', ({ radioToken }) => { this.setToken(radioToken) })