()
| 1 | var is_ios = function () { |
| 2 | // ios |
| 3 | if ([ |
| 4 | 'iPad Simulator', |
| 5 | 'iPhone Simulator', |
| 6 | 'iPod Simulator', |
| 7 | 'iPad', |
| 8 | 'iPhone', |
| 9 | 'iPod' |
| 10 | ].includes(navigator.platform) |
| 11 | // iPad on iOS 13 detection |
| 12 | || (navigator.userAgent.includes("Mac") && "ontouchend" in document)) |
| 13 | return true; |
| 14 | return false; |
| 15 | } |
| 16 | |
| 17 | var is_mac = function () { |
| 18 | if (is_ios()) |
no outgoing calls
no test coverage detected