Permalink
Browse files

Identify Chrome on iOS and Android

  • Loading branch information...
1 parent 681e42d commit dacb11beb2d4b2816217f83da19b5597d1993f2c @davglass committed Jul 3, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/hub/ua.js
View
@@ -80,9 +80,9 @@ module.exports = function (ua) {
}
}
- m = ua.match(/Chrome\/([^\s]*)/);
- if (m && m[1]) {
- version = m[1]; // Chrome
+ m = ua.match(/(Chrome|CrMo|CriOS)\/([^\s]*)/);
+ if (m && m[1] && m[2]) {
+ version = m[2]; // Chrome
name = 'Chrome';
}
}

0 comments on commit dacb11b

Please sign in to comment.