Identify Chrome on iOS and Android #16

Merged
merged 1 commit into from Sep 18, 2012
Jump to file
+3 −3
Split
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';
}
}