monkeeShark/packages/client/src/scripts/is-mobile.ts

3 lines
109 B
TypeScript
Raw Normal View History

2021-02-17 12:34:20 +00:00
const ua = navigator.userAgent.toLowerCase();
export const isMobile = /mobile|iphone|ipad|android/.test(ua);