web: Bug fix: IsAndroidChrome always returned true

This commit is contained in:
Hajime Hoshi 2019-10-24 00:20:33 +09:00
parent 124389561c
commit 06bbc08e9b

View File

@ -37,9 +37,11 @@ func init() {
if !strings.Contains(userAgent, "Android") { if !strings.Contains(userAgent, "Android") {
isAndroidChrome = false isAndroidChrome = false
return
} }
if !strings.Contains(userAgent, "Chrome") { if !strings.Contains(userAgent, "Chrome") {
isAndroidChrome = false isAndroidChrome = false
return
} }
isAndroidChrome = true isAndroidChrome = true
} }