Fix bad chrome version check
This commit is contained in:
+1
-1
@@ -164,7 +164,7 @@ function modifyResponseHeaderHandler_(details) {
|
|||||||
function getChromeVersion() {
|
function getChromeVersion() {
|
||||||
let pieces = navigator.userAgent.match(/Chrom(?:e|ium)\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/);
|
let pieces = navigator.userAgent.match(/Chrom(?:e|ium)\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/);
|
||||||
if (pieces == null || pieces.length != 5) {
|
if (pieces == null || pieces.length != 5) {
|
||||||
return undefined;
|
return {};
|
||||||
}
|
}
|
||||||
pieces = pieces.map(piece => parseInt(piece, 10));
|
pieces = pieces.map(piece => parseInt(piece, 10));
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user