fix(linux): guard WebSocket.prototype assignment — read-only on WebKitGTK

This commit is contained in:
2026-07-20 12:26:14 -04:00
parent 156ee4197c
commit 6f6d1329c6
+2 -1
View File
@@ -79,7 +79,8 @@ if (isTauri) {
return ws;
} as unknown as typeof WebSocket;
window.WebSocket.prototype = OriginalWebSocket.prototype;
// ponytail: WebKitGTK may have read-only prototype — guard against throw
try { window.WebSocket.prototype = OriginalWebSocket.prototype; } catch { /* readonly, fine */ }
}
createRoot(document.getElementById('root')!).render(