Skip to content

Commit

Permalink
add windows phone to patform
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioCrisostomo committed Nov 29, 2014
1 parent 652ee5f commit 4bc79c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Browser/Browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var parse = function(ua, platform){
UA[1] = 'chrome';
}

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];
if (platform == 'win') platform = 'windows';

return {
Expand Down

0 comments on commit 4bc79c3

Please sign in to comment.