From b6d93a707b89089736ea43d893bbeb3ed57c8d83 Mon Sep 17 00:00:00 2001 From: break27 Date: Fri, 22 May 2026 17:29:33 +0800 Subject: [PATCH] fix: 'status' null check --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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':