Permalink
Browse files

Merge pull request #16 from davglass/chrome

Identify Chrome on iOS and Android
  • Loading branch information...
2 parents a24db5c + dacb11b commit aec0a96fa7a66289aed0838665eeb09be89df4f2 @reid reid committed Sep 18, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/hub/ua.js
View
@@ -86,9 +86,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 aec0a96

Please sign in to comment.