(win: Window)
| 48 | const isMobileWeb = (win: Window): boolean => isMobile(win) && !isHybrid(win); |
| 49 | |
| 50 | const isIpad = (win: Window) => { |
| 51 | // iOS 12 and below |
| 52 | if (testUserAgent(win, /iPad/i)) { |
| 53 | return true; |
| 54 | } |
| 55 | |
| 56 | // iOS 13+ |
| 57 | if (testUserAgent(win, /Macintosh/i) && isMobile(win)) { |
| 58 | return true; |
| 59 | } |
| 60 | |
| 61 | return false; |
| 62 | }; |
| 63 | |
| 64 | const isIphone = (win: Window) => testUserAgent(win, /iPhone/i); |
| 65 |
no test coverage detected