2020-03-09 17:51:07 +00:00
|
|
|
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 );
|
|
|
|
|
2022-03-31 09:19:55 +00:00
|
|
|
export const isAndroid = /android/gi.test( UA );
|