Open miroslavpejic85 opened 2 years ago
It would be great to add if the device is a Tablet or IPad
const userAgent = navigator.userAgent.toLowerCase(); const isTablet = /(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(userAgent); const isIpad = /macintosh/.test(userAgent) && 'ontouchend' in document;
It would be great to add if the device is a Tablet or IPad