MyCrypto/common/utils/isMobile.ts

5 lines
144 B
TypeScript

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