mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 20:18:59 +01:00
parent
5182060899
commit
63f73ddd75
@ -33,17 +33,8 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
isIOSSafari = strings.Contains(userAgent, "iPhone")
|
isIOSSafari = strings.Contains(userAgent, "iPhone") || strings.Contains(userAgent, "iPad")
|
||||||
|
isAndroidChrome = strings.Contains(userAgent, "Android") && strings.Contains(userAgent, "Chrome")
|
||||||
if !strings.Contains(userAgent, "Android") {
|
|
||||||
isAndroidChrome = false
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if !strings.Contains(userAgent, "Chrome") {
|
|
||||||
isAndroidChrome = false
|
|
||||||
return
|
|
||||||
}
|
|
||||||
isAndroidChrome = true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func IsIOSSafari() bool {
|
func IsIOSSafari() bool {
|
||||||
|
Loading…
Reference in New Issue
Block a user