Fix: getChromeVersion

This commit is contained in:
eight 2018-11-21 15:30:18 +08:00
parent dff7fd1f7e
commit 39a10079c4

View File

@ -72,7 +72,7 @@
function getChromeVersion() { function getChromeVersion() {
const match = navigator.userAgent.match(/chrome\/(\d+)/i); const match = navigator.userAgent.match(/chrome\/(\d+)/i);
return match && Number(match[1]); return match ? Number(match[1]) : undefined;
} }
function start() { function start() {