mirror of https://github.com/Chocobozzz/PeerTube
Fix isIOS function
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