()
| 88 | const appleDeviceMatch = /(Mac|iPhone|iPod|iPad)/i; |
| 89 | |
| 90 | export const isAppleDevice = (): boolean => { |
| 91 | if (typeof window === 'undefined') { |
| 92 | return false; |
| 93 | } |
| 94 | |
| 95 | return appleDeviceMatch.test(window.navigator.platform); |
| 96 | }; |
| 97 | |
| 98 | export const isIOS = (): boolean => |
| 99 | /iPhone|iPad/i.test(globalThis?.navigator.userAgent); |
no outgoing calls
no test coverage detected