From 06bbc08e9bdef75a56eaa2fd709a657a7bf1cc27 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Thu, 24 Oct 2019 00:20:33 +0900 Subject: [PATCH] web: Bug fix: IsAndroidChrome always returned true --- internal/web/js.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/web/js.go b/internal/web/js.go index dbd00592f..14750d982 100644 --- a/internal/web/js.go +++ b/internal/web/js.go @@ -37,9 +37,11 @@ func init() { if !strings.Contains(userAgent, "Android") { isAndroidChrome = false + return } if !strings.Contains(userAgent, "Chrome") { isAndroidChrome = false + return } isAndroidChrome = true }