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