Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

Avoid popup-open false errors on mobile browsers

Julius Marminge7a39ce34fa78
diff --git a/apps/web/src/wsNativeApi.ts b/apps/web/src/wsNativeApi.ts
index ec147794e..f7ac04a9b 100644
--- a/apps/web/src/wsNativeApi.ts
+++ b/apps/web/src/wsNativeApi.ts
@@ -153,10 +153,9 @@ export function createWsNativeApi(): NativeApi {
return;
}
- const popup = window.open(url, "_blank", "noopener,noreferrer");
- if (!popup) {
- throw new Error("Unable to open link. Allow popups and try again.");
- }
+ // Some mobile browsers can return null here even when the tab opens.
+ // Avoid false negatives and let the browser handle popup policy.
+ window.open(url, "_blank", "noopener,noreferrer");
},
},
git: {