Forgot to update UI if failed to get new server state

This commit is contained in:
Marc-Andre Ferland 2022-10-16 21:32:59 -04:00
parent 982b5221b1
commit 2edc06c662

View File

@ -290,6 +290,7 @@ async function healthCheck() {
serverState = await res.json() serverState = await res.json()
if (typeof serverState !== 'object' || typeof serverState.status !== 'string') { if (typeof serverState !== 'object' || typeof serverState.status !== 'string') {
serverState = {'status': 'Offline', 'time': Date.now()} serverState = {'status': 'Offline', 'time': Date.now()}
setServerStatus('error', 'offline')
return return
} }
// Set status // Set status