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

3 lines
109 B
TypeScript
Raw Normal View History

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