mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-27 04:08:53 +01:00
web: Bug fix: IsAndroidChrome always returned true
This commit is contained in:
parent
124389561c
commit
06bbc08e9b
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user