From b323ea21c96c2b8a534e671e00fdb86206ba61d5 Mon Sep 17 00:00:00 2001 From: Paul Wackerow <54227730+wackerow@users.noreply.github.com> Date: Thu, 15 Dec 2022 14:49:52 -0800 Subject: [PATCH] add back Android user agent check --- src/components/UI/downloads/DownloadsTable.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/UI/downloads/DownloadsTable.tsx b/src/components/UI/downloads/DownloadsTable.tsx index ce9523a3ee..feb14bc9c4 100644 --- a/src/components/UI/downloads/DownloadsTable.tsx +++ b/src/components/UI/downloads/DownloadsTable.tsx @@ -39,10 +39,11 @@ export const DownloadsTable: FC = ({ const getDefaultIndex = useMemo(() => { const OS: string = typeof window !== 'undefined' ? window.navigator.platform : ''; + const userAgent = typeof window !== 'undefined' ? window.navigator.userAgent : ''; if (/Mac/i.test(OS)) return 1; if (/Win/i.test(OS)) return 2; if (/iPhone/i.test(OS)) return 3; - if (/Android/i.test(OS)) return 4; + if (/Android/i.test(userAgent)) return 4; return 0; }, [])