Fix isIOS function
This commit is contained in:
parent
dca0fe12ec
commit
b12ce2b851
|
@ -14,9 +14,9 @@ function isIOS () {
|
|||
}
|
||||
|
||||
// Detect iPad Desktop mode
|
||||
return navigator.maxTouchPoints &&
|
||||
return !!(navigator.maxTouchPoints &&
|
||||
navigator.maxTouchPoints > 2 &&
|
||||
/MacIntel/.test(navigator.platform)
|
||||
/MacIntel/.test(navigator.platform))
|
||||
}
|
||||
|
||||
function isSafari () {
|
||||
|
|
Loading…
Reference in New Issue