Skip to content

Commit fb691e2

Browse files
fix: ios prompt (#3059)
* fix: ios prompt * Update src/common/lib/utils.ts --------- Co-authored-by: René Aaron <[email protected]>
1 parent 9a17548 commit fb691e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/common/lib/utils.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ const utils = {
8080
)}?${urlParams.toString()}`;
8181

8282
// Window APIs might not be available on mobile browsers
83-
const useWindow = !!browser.windows;
83+
// on iOS window APIs are available, but `windows.create` is not
84+
const useWindow = !!(browser.windows && browser.windows.create);
8485

8586
// Either API yields a tabId
8687
const tabId = useWindow

0 commit comments

Comments
 (0)