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.

12345678
  1. const UA = navigator.userAgent;
  2. export const isMobile = /(iphone|ipod|ipad|android)/gi.test( UA ) ||
  3. ( navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1 ); // iPadOS
  4. export const isChrome = /chrome/i.test( UA ) && !/edge/i.test( UA );
  5. export const isAndroid = /android/gi.test( UA );