mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
web: Bug fix: Expose IsAndroidChrome
This commit is contained in:
parent
7cd89bc44b
commit
9471e3e4e7
@ -38,7 +38,7 @@ func IsIOSSafari() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
func isAndroidChrome() bool {
|
||||
func IsAndroidChrome() bool {
|
||||
ua := js.Global.Get("navigator").Get("userAgent").String()
|
||||
if !strings.Contains(ua, "Android") {
|
||||
return false
|
||||
@ -50,5 +50,5 @@ func isAndroidChrome() bool {
|
||||
}
|
||||
|
||||
func IsMobileBrowser() bool {
|
||||
return IsIOSSafari() || isAndroidChrome()
|
||||
return IsIOSSafari() || IsAndroidChrome()
|
||||
}
|
||||
|
@ -28,6 +28,10 @@ func IsIOSSafari() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func IsAndroidChrome() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func IsMobileBrowser() bool {
|
||||
return false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user