mizzkey/src/client/scripts/is-mobile.ts

3 lines
109 B
TypeScript
Raw Normal View History

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