Sascha Schulz
2024-04-10 f67632bb3cd2ea7bee7cc5e3ca342140455495ab
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 );