()
| 20 | import { isMobileApp } from './env'; |
| 21 | |
| 22 | export const isWindowsOS = () => { |
| 23 | const agent = navigator.userAgent.toLowerCase(); |
| 24 | if (agent.indexOf('win32') >= 0 || agent.indexOf('wow32') >= 0) { |
| 25 | return true; |
| 26 | } |
| 27 | if (agent.indexOf('win64') >= 0 || agent.indexOf('wow64') >= 0) { |
| 28 | return true; |
| 29 | } |
| 30 | return false; |
| 31 | }; |
| 32 | |
| 33 | export const isMac = () => { |
| 34 | const agent = navigator.userAgent; |
no outgoing calls
no test coverage detected