Skip to content
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

fix isIOS and isMobileSafari on iPads running Safari and iOS 13 #85

Merged
merged 1 commit into from
Apr 28, 2020

Conversation

askielboe
Copy link
Contributor

@askielboe askielboe commented Apr 27, 2020

This PR includes two additional fixes related to iPads running Safari under iOS 13.

Issues: Both isIOS and isMobileSafari currently return false when called in Safari on an iPad running iOS 13.

Regarding isIOS I guess technically iOS on iPad is now called iPadOS, but this library does not seem to reference iPadOS anywhere. So to be consistent I tried to follow the same logic with this PR.

The PR fixes the issues using || getIPad13(), as was done in the previous PR related to this: #81.

I'm not sure if this is really the best way, but it gets the job done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants