@devries-cameron20 / t3code Mirror · read-only / commits / 7a39ce34fa
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 25, 16:00 UTC

Avoid popup-open false errors on mobile browsers

- Stop throwing when `window.open` returns `null` in `wsNativeApi` - Keep opening external links in a new tab and rely on browser popup policy

Julius Marminge committed Feb 28, 2026 at 16:20 UTC 7a39ce34fa78d9395cc8dee177ad490d5b91daa0
1 file changed +3 -4
apps/web/src/wsNativeApi.ts
+3 -4
@@ -153,10 +153,9 @@ export function createWsNativeApi(): NativeApi {
153 return;
154 }
155
156 - const popup = window.open(url, "_blank", "noopener,noreferrer");
157 - if (!popup) {
158 - throw new Error("Unable to open link. Allow popups and try again.");
159 - }
156 + // Some mobile browsers can return null here even when the tab opens.
157 + // Avoid false negatives and let the browser handle popup policy.
158 + window.open(url, "_blank", "noopener,noreferrer");
159 },
160 },
161 git: {