🐛 Fixes some linting errors

This commit is contained in:
Rune Harlyk
2025-07-10 18:24:25 +02:00
committed by Rune Harlyk
parent 9be405a89d
commit 0cc372cd36
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ function createWebSocket() {
resetUnresponsiveCheck();
const message = decodeMessage(frame.data);
if (!message) return;
const [_, event, payload = undefined] = message;
const [, event, payload = undefined] = message;
if (event) listeners.get(event)?.forEach(listener => listener(payload));
};
ws.onerror = ev => disconnect('error', ev);
+1 -1
View File
@@ -3,7 +3,7 @@
import { WiFi } from '$lib/components/icons';
import { location, socket } from '$lib/stores';
const update = async () => {
const update = () => {
const ws = $location ? $location : window.location.host;
socket.init(`ws://${ws}/api/ws/events`);
};