Sascha Schulz
2024-06-10 1838ab5ce4d049d6c113124b1969dfebc90b4163
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 );