From b12ce2b8511039968faabe5a9eeee60ab36521eb Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 3 Aug 2020 16:07:22 +0200 Subject: [PATCH] Fix isIOS function --- client/src/assets/player/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/assets/player/utils.ts b/client/src/assets/player/utils.ts index 81fe68951..3135f4e6c 100644 --- a/client/src/assets/player/utils.ts +++ b/client/src/assets/player/utils.ts @@ -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 () {