Fixed small issue

This commit is contained in:
2026-02-16 00:49:01 +01:00
parent f3b780c637
commit 38d53f0a6d
+2 -2
View File
@@ -42,12 +42,12 @@ async function ensureSocket(useLocalhost: boolean): Promise<WebSocket> {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
const ws = new WebSocket(getWsOrigin(useLocalhost)); const ws = new WebSocket(getWsOrigin(useLocalhost));
ws.onopen = () => { ws.onopen = async () => {
socket = ws; socket = ws;
console.log("Authenticating with cookies:", getCookies()); console.log("Authenticating with cookies:", getCookies());
sendUnsafe(useLocalhost, { cookies: getCookies() }); await sendUnsafe(useLocalhost, { cookies: getCookies() });
resolve(ws); resolve(ws);
}; };