Detect ipad desktop as ios too
This commit is contained in:
parent
d45f3641d0
commit
b6a8cfc571
|
@ -9,7 +9,14 @@ function isWebRTCDisabled () {
|
||||||
}
|
}
|
||||||
|
|
||||||
function isIOS () {
|
function isIOS () {
|
||||||
return !!navigator.platform && /iPad|iPhone|iPod/.test(navigator.platform)
|
if (/iPad|iPhone|iPod/.test(navigator.platform)) {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
// Detect iPad Desktop mode
|
||||||
|
return navigator.maxTouchPoints &&
|
||||||
|
navigator.maxTouchPoints > 2 &&
|
||||||
|
/MacIntel/.test(navigator.platform)
|
||||||
}
|
}
|
||||||
|
|
||||||
function isSafari () {
|
function isSafari () {
|
||||||
|
|
Loading…
Reference in New Issue