Skip to content

Commit 026f412

Browse files
committed
fix: ios/idevice detection error
1 parent e895846 commit 026f412

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ <h5 data-i18n="footer.in-touch.header">Keep in Touch</h5>
731731
osMatch = navigator.userAgent.match(
732732
/Mac OS X 10[._](\d+)([._](\d+))?\D/i
733733
);
734-
osMatch = parseFloat(osMatch[1] + "." + (osMatch[3] || 0));
734+
osMatch = osMatch && parseFloat(osMatch[1] + "." + (osMatch[3] || 0));
735735

736736
// Firefox reports only the OS X major version (10.6), so we have to check for 6.0
737737
if (osMatch < 6.8 && osMatch !== 6.0) {

0 commit comments

Comments
 (0)