Fix bad chrome version check

This commit is contained in:
Hao Nguyen
2019-07-15 06:29:14 -07:00
parent 816fd95e25
commit cea2a1dc75
+1 -1
View File
@@ -164,7 +164,7 @@ function modifyResponseHeaderHandler_(details) {
function getChromeVersion() {
let pieces = navigator.userAgent.match(/Chrom(?:e|ium)\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/);
if (pieces == null || pieces.length != 5) {
return undefined;
return {};
}
pieces = pieces.map(piece => parseInt(piece, 10));
return {