diff --git a/Source/Browser/Browser.js b/Source/Browser/Browser.js index e59b16c9a..ac0e9028b 100644 --- a/Source/Browser/Browser.js +++ b/Source/Browser/Browser.js @@ -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 {