Sascha Schulz
2024-07-08 3344773e6b2c7fc38ee160ddb8d1db1fcfaf8c4d
1
2
3
4
5
6
7
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 );