diff options
Diffstat (limited to 'client/src/assets/player/utils.ts')
-rw-r--r-- | client/src/assets/player/utils.ts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/client/src/assets/player/utils.ts b/client/src/assets/player/utils.ts index a72bf0123..81fe68951 100644 --- a/client/src/assets/player/utils.ts +++ b/client/src/assets/player/utils.ts | |||
@@ -9,7 +9,14 @@ function isWebRTCDisabled () { | |||
9 | } | 9 | } |
10 | 10 | ||
11 | function isIOS () { | 11 | function isIOS () { |
12 | return !!navigator.platform && /iPad|iPhone|iPod/.test(navigator.platform) | 12 | if (/iPad|iPhone|iPod/.test(navigator.platform)) { |
13 | return true | ||
14 | } | ||
15 | |||
16 | // Detect iPad Desktop mode | ||
17 | return navigator.maxTouchPoints && | ||
18 | navigator.maxTouchPoints > 2 && | ||
19 | /MacIntel/.test(navigator.platform) | ||
13 | } | 20 | } |
14 | 21 | ||
15 | function isSafari () { | 22 | function isSafari () { |