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 8753619 commit 72b7d2dCopy full SHA for 72b7d2d
Source/Browser/Browser.js
@@ -32,7 +32,7 @@ var parse = function(ua, platform){
32
UA[1] = 'chrome';
33
}
34
35
- platform = ua.match(/ip(?:ad|od|hone)/) ? 'ios' : (ua.match(/(?:webos|android)/) || platform.match(/mac|win|linux/) || ['other'])[0];
+ platform = ua.indexOf('windows phone') != -1 ? 'windowsmobile' : ua.match(/ip(?:ad|od|hone)/) ? 'ios' : (ua.match(/(?:webos|android)/) || platform.match(/mac|win|linux/) || ['other'])[0];
36
if (platform == 'win') platform = 'windows';
37
38
return {
0 commit comments