mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-25 02:09:01 +02: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);
|
const eventSource = new EventSource(wakeEventsPath);
|
||||||
|
|
||||||
eventSource.onmessage = function (event) {
|
eventSource.onmessage = function (event) {
|
||||||
|
let data;
|
||||||
try {
|
try {
|
||||||
const data = JSON.parse(event.data);
|
data = JSON.parse(event.data);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
addConsoleLine(
|
addConsoleLine(
|
||||||
"error",
|
"error",
|
||||||
|
|||||||
Reference in New Issue
Block a user