This commit is contained in:
Jade Lovelace 2022-10-25 21:37:28 -07:00
parent eef26f4734
commit a54821a130
130 changed files with 3 additions and 0 deletions

View file

@ -0,0 +1,8 @@
const UA = navigator.userAgent;
export const isMobile = /(iphone|ipod|ipad|android)/gi.test( UA ) ||
( navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1 ); // iPadOS
export const isChrome = /chrome/i.test( UA ) && !/edge/i.test( UA );
export const isAndroid = /android/gi.test( UA );