1
0
Fork 0

Fix isIOS function

This commit is contained in:
Chocobozzz 2020-08-03 16:07:22 +02:00
parent dca0fe12ec
commit b12ce2b851
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -14,9 +14,9 @@ function isIOS () {
} }
// Detect iPad Desktop mode // Detect iPad Desktop mode
return navigator.maxTouchPoints && return !!(navigator.maxTouchPoints &&
navigator.maxTouchPoints > 2 && navigator.maxTouchPoints > 2 &&
/MacIntel/.test(navigator.platform) /MacIntel/.test(navigator.platform))
} }
function isSafari () { function isSafari () {