From 39a10079c49c9c6cbb8e79db5d98176bf193eae5 Mon Sep 17 00:00:00 2001 From: eight Date: Wed, 21 Nov 2018 15:30:18 +0800 Subject: [PATCH] Fix: getChromeVersion --- content/install-hook-usercss.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/install-hook-usercss.js b/content/install-hook-usercss.js index c88c13ea..c308f2f3 100644 --- a/content/install-hook-usercss.js +++ b/content/install-hook-usercss.js @@ -72,7 +72,7 @@ function getChromeVersion() { const match = navigator.userAgent.match(/chrome\/(\d+)/i); - return match && Number(match[1]); + return match ? Number(match[1]) : undefined; } function start() {