Sascha Schulz
2024-06-03 a0bce2c2ad387b0153fd4398ae5aca9cc143f9e9
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 );