mirror of
https://github.com/yusing/godoxy.git
synced 2026-01-11 22:30:47 +01:00
fix(idlewatcher): correct variable declaration for event data parsing in loading.js
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user