From 6f6d1329c69a1d0a11986c50e64ecc62eaff8652 Mon Sep 17 00:00:00 2001 From: hobokenchicken Date: Mon, 20 Jul 2026 12:26:14 -0400 Subject: [PATCH] =?UTF-8?q?fix(linux):=20guard=20WebSocket.prototype=20ass?= =?UTF-8?q?ignment=20=E2=80=94=20read-only=20on=20WebKitGTK?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/main.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(