()
| 113 | /iPhone|iPad/i.test(globalThis?.navigator.userAgent); |
| 114 | |
| 115 | export const isIOSNative = (): boolean => { |
| 116 | const runtimeWindow = globalThis as unknown as RuntimeWindow; |
| 117 | return ( |
| 118 | !!runtimeWindow.webkit && |
| 119 | !!runtimeWindow.webkit.messageHandlers && |
| 120 | document.documentElement.classList.contains('ios') |
| 121 | ); |
| 122 | }; |
| 123 | |
| 124 | const metaInAppBrowserMatch = /FBAN|FBAV|FB_IAB|Instagram/i; |
| 125 |
no outgoing calls
no test coverage detected