From 14cf43de26e44d5ef082806c2b97a88ce4bd6c84 Mon Sep 17 00:00:00 2001 From: Brandon Cohen Date: Thu, 20 Jun 2024 16:42:37 -0700 Subject: [PATCH] fix: correct deeplinks on iPad (#3883) --- src/hooks/useDeepLinks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useDeepLinks.ts b/src/hooks/useDeepLinks.ts index b641499ef0..964ed2d460 100644 --- a/src/hooks/useDeepLinks.ts +++ b/src/hooks/useDeepLinks.ts @@ -19,7 +19,7 @@ const useDeepLinks = ({ useEffect(() => { if ( /iPad|iPhone|iPod/.test(navigator.userAgent) || - (navigator.userAgent === 'MacIntel' && navigator.maxTouchPoints > 1) + (navigator.userAgent.includes('Mac') && navigator.maxTouchPoints > 1) ) { setReturnedPlexUrl(iOSPlexUrl); setReturnedPlexUrl4k(iOSPlexUrl4k);