-
Notifications
You must be signed in to change notification settings - Fork 627
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
is.tablet() returns false on iPad #306
Comments
I've migrated the entire repo to ES6 and merged/fixed a few things along the way... can you try again with https://github.com/evdama/is-it-check as I've added a fix/feature for iOS13 today evdama@06f7d54 |
As of now, on an iPad Pro (12.9-inch) (4th gen) running iPadOS 15.4, here’s what returns: is.jsis.tablet() // false
is.ios() // false
is.safari() // true
is.ipad() // false
is.mobile() // false is-it-checkis.tablet() // true
is.ios() // true
is.safari() // true
is.ipad() // true
is.mobile() // true 🎉 |
excellent, so I consider this fixed in |
isMobile returns the correct value, but isTablet returns false on Safari and Firefox.
This is the regex match which appears to be returning unexpected behavior.
is.js/is.js
Lines 678 to 681 in 5629495
These are my results when logging out userAgent on iPad.
Safari:
mozilla/5.0 (macintosh; intel mac os x 10_15) applewebkit/605.1.15 (khtml, like gecko) version/12.0.4 safari/605.1.15
Firefox:
mozilla/5.0. (macintosh; intel mac os x 10.15) applewebkit/6051.15 (khtml, like gecko) fxios/22.0 safari/605.1.15
Chrome:
mozilla/5.0 (ipad; cpu os 13_3 like max os x) applewebkit/650.1.15 (khtml, like gecko) crios/79.0.3945.73 mobile/15e148 safari/604.1
The text was updated successfully, but these errors were encountered: