()
| 102 | const appleDeviceMatch = /(Mac|iPhone|iPod|iPad)/i; |
| 103 | |
| 104 | export const isAppleDevice = (): boolean => { |
| 105 | if (typeof window === 'undefined') { |
| 106 | return false; |
| 107 | } |
| 108 | |
| 109 | return appleDeviceMatch.test(window.navigator.platform); |
| 110 | }; |
| 111 | |
| 112 | export const isIOS = (): boolean => |
| 113 | /iPhone|iPad/i.test(globalThis?.navigator.userAgent); |
no outgoing calls
no test coverage detected