You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
308 B
8 lines
308 B
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 );
|