From f6dcc8f11893d4b4343adec4ba3d842e2f4126ac Mon Sep 17 00:00:00 2001 From: yusing Date: Fri, 7 Nov 2025 17:08:58 +0800 Subject: [PATCH] fix(idlewatcher): correct variable declaration for event data parsing in loading.js --- internal/idlewatcher/html/loading.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/idlewatcher/html/loading.js b/internal/idlewatcher/html/loading.js index 8eb485d0..9860d259 100644 --- a/internal/idlewatcher/html/loading.js +++ b/internal/idlewatcher/html/loading.js @@ -63,8 +63,9 @@ window.onload = async function () { const eventSource = new EventSource(wakeEventsPath); eventSource.onmessage = function (event) { + let data; try { - const data = JSON.parse(event.data); + data = JSON.parse(event.data); } catch (error) { addConsoleLine( "error",