Permalink
Browse files

Added Windows 7 Mobile to UA parser

  • Loading branch information...
davglass committed Mar 29, 2012
1 parent 27034e8 commit e7dbcad181679ceb4fd020a5968440fee0655d1b
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/browsers.js
View
@@ -194,6 +194,9 @@ Browser.forAgent = function(ua) {
break;
}
}
+ if ((/IEMobile|XBLWP7/).test(ua)) {
+ os += ' Mobile';
+ }
} else if ((/macintosh/i).test(ua)) {
os = 'Mac OSX';
m = ua.match(/10_7/);

0 comments on commit e7dbcad

Please sign in to comment.