Closed
Description
For iPad on iOS 13 the term iPad
no longer appears in the user-agent
. The user agent for iPad on iOS 13 is this:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko)
The solution to check for iPad on iOS is:
let isIOS = /iPad|iPhone|iPod/.test(navigator.platform) ||
(navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1);
Reference to solution here: https://stackoverflow.com/a/58064481/3787150
Metadata
Assignees
Labels
No labels