aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/assets')
-rw-r--r--client/src/assets/player/utils.ts9
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
11function isIOS () { 11function 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
15function isSafari () { 22function isSafari () {