fix(linux): guard WebSocket.prototype assignment — read-only on WebKitGTK
Release Desktop Apps / build-linux (push) Successful in 4m22s
Release Desktop Apps / build-windows (push) Successful in 17m10s
Release Desktop Apps / release (push) Successful in 11s

This commit is contained in:
2026-07-20 12:26:14 -04:00
parent 088b27f9c8
commit 3d0bc76ef2
+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(