MyCrypto/common/utils/isMobile.ts

7 lines
152 B
TypeScript

const isMobile =
window && window.navigator
? /iPhone|iPad|iPod|Android/i.test(window.navigator.userAgent)
: false;
export default isMobile;