react-background-video-player icon indicating copy to clipboard operation
react-background-video-player copied to clipboard

Can not get iOSNavigator correctly

Open Xing-He opened this issue 6 years ago • 0 comments

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+)?/);

Xing-He avatar Dec 18 '18 08:12 Xing-He