fix(idlewatcher): correct variable declaration for event data parsing in loading.js

This commit is contained in:
yusing
2025-11-07 17:08:58 +08:00
parent 4d6541c851
commit f6dcc8f118

View File

@@ -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",