Open nbrustein opened 6 years ago
In the wild, on line 913 of ocLazyLoad.js, a few of our users hit the following error:
null is not an object (evaluating 'v[1]')
The relevant line of code is:
var iOSVersion = parseFloat([parseInt(v[1], 10), parseInt(v[2], 10), parseInt(v[3] || 0, 10)].join('.'));
We've seen this with the following user agents:
It seems like window.navigator.platform is reporting that this device is an iOS device, but window.navigator.appVersion is not in the expected format.
window.navigator.platform
window.navigator.appVersion
@ocombe / @nbrustein - Made a quick inline-PR to handle a fall-through scenario for when user-agent strings + platform combinations are unknown. https://github.com/ocombe/ocLazyLoad/pull/417
In the wild, on line 913 of ocLazyLoad.js, a few of our users hit the following error:
The relevant line of code is:
We've seen this with the following user agents:
It seems like
window.navigator.platform
is reporting that this device is an iOS device, butwindow.navigator.appVersion
is not in the expected format.