We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7bfc4e commit 3bfd164Copy full SHA for 3bfd164
src/ua-parser.js
@@ -872,7 +872,7 @@
872
_os[NAME] = undefined;
873
_os[VERSION] = undefined;
874
rgxMapper.call(_os, _ua, _rgxmap.os);
875
- if (_isSelfNav && !_os[NAME] && _uach && _uach.platform != 'Unknown') {
+ if (_isSelfNav && !_os[NAME] && _uach && _uach.platform && _uach.platform != 'Unknown') {
876
_os[NAME] = _uach.platform
877
.replace(/chrome os/i, CHROMIUM_OS)
878
.replace(/macos/i, MAC_OS); // backward compatibility
0 commit comments