]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/assets/player/utils.ts
Add logic to handle playlist in embed
[github/Chocobozzz/PeerTube.git] / client / src / assets / player / utils.ts
index 81fe689514e057183b344fa75d7d1785378e1050..20d97c7e2182192be9a3b7f7f87a59ea5279717b 100644 (file)
@@ -1,4 +1,4 @@
-import { VideoFile } from '../../../../shared/models/videos'
+import { VideoFile } from '@shared/models'
 
 function toTitleCase (str: string) {
   return str.charAt(0).toUpperCase() + str.slice(1)
@@ -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 () {