sharkey/src/client/scripts/is-mobile.ts
2021-02-17 21:34:20 +09:00

3 lines
109 B
TypeScript

const ua = navigator.userAgent.toLowerCase();
export const isMobile = /mobile|iphone|ipad|android/.test(ua);