From 2edc06c662d2c6ee537266d8872f65c6207b1f49 Mon Sep 17 00:00:00 2001 From: Marc-Andre Ferland Date: Sun, 16 Oct 2022 21:32:59 -0400 Subject: [PATCH] Forgot to update UI if failed to get new server state --- ui/media/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/media/main.js b/ui/media/main.js index b008bfc2..5276db1a 100644 --- a/ui/media/main.js +++ b/ui/media/main.js @@ -290,6 +290,7 @@ async function healthCheck() { serverState = await res.json() if (typeof serverState !== 'object' || typeof serverState.status !== 'string') { serverState = {'status': 'Offline', 'time': Date.now()} + setServerStatus('error', 'offline') return } // Set status