diff --git a/web/src/main.tsx b/web/src/main.tsx index 1c492f6..431c658 100644 --- a/web/src/main.tsx +++ b/web/src/main.tsx @@ -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(