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

Can not get iOSNavigator correctly #12

Open
Xing-He opened this issue Dec 18, 2018 · 0 comments
Open

Can not get iOSNavigator correctly #12

Xing-He opened this issue Dec 18, 2018 · 0 comments

Comments

@Xing-He
Copy link

Xing-He commented Dec 18, 2018

This is my appVersion

  • 2.6 (iPhone; iPhone 7; iOS 11.4; Scale/2.00; deviceid:0CAB2B9xxxxxxxxx55201B0)

After going deeper to code, i found that the regular express /OS (\d+)_(\d+)_?(\d+)?/ doesn't match my appVersion

const iOSNavigator = typeof navigator !== 'undefined' && (navigator.appVersion).match(/OS (\d+)_(\d+)_?(\d+)?/);
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

No branches or pull requests

1 participant