init
Some checks failed
tests / build (14.x) (push) Failing after 3m45s

This commit is contained in:
2025-09-05 18:39:49 +02:00
commit b343de3014
190 changed files with 42779 additions and 0 deletions

8
js/utils/device.js Normal file
View File

@@ -0,0 +1,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 );