diff --git a/index.html b/index.html index 27dde8d..c43bb78 100644 --- a/index.html +++ b/index.html @@ -421,7 +421,7 @@ while (await new Promise(o => setTimeout(o, 1000, true))) { if (busy) continue; status = await Rpc2.invoke('status').catch(() => null); - $('#statusLabel').innerText = status.charAt(0).toUpperCase() + status.slice(1).toLowerCase(); + $('#statusLabel').innerText = status ? status.charAt(0).toUpperCase() + status.slice(1).toLowerCase() : ''; switch (status) { case 'IDLE':