mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
parent
a89e07f913
commit
e95dc5f27a
@ -33,17 +33,8 @@ var (
|
||||
)
|
||||
|
||||
func init() {
|
||||
isIOSSafari = strings.Contains(userAgent, "iPhone")
|
||||
|
||||
if !strings.Contains(userAgent, "Android") {
|
||||
isAndroidChrome = false
|
||||
return
|
||||
}
|
||||
if !strings.Contains(userAgent, "Chrome") {
|
||||
isAndroidChrome = false
|
||||
return
|
||||
}
|
||||
isAndroidChrome = true
|
||||
isIOSSafari = strings.Contains(userAgent, "iPhone") || strings.Contains(userAgent, "iPad")
|
||||
isAndroidChrome = strings.Contains(userAgent, "Android") && strings.Contains(userAgent, "Chrome")
|
||||
}
|
||||
|
||||
func IsIOSSafari() bool {
|
||||
|
Loading…
Reference in New Issue
Block a user