Fix isIOS function
This commit is contained in:
parent
dca0fe12ec
commit
b12ce2b851
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue