mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
parent
5182060899
commit
63f73ddd75
@ -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