mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-02 17:43:48 +00:00
check for SamsungBrowser for Android
This commit is contained in:
parent
832f1002bc
commit
22e75c7012
1 changed files with 2 additions and 1 deletions
|
|
@ -39,10 +39,11 @@ export const DownloadsTable: FC<Props> = ({
|
|||
|
||||
const getDefaultIndex = useMemo<number>(() => {
|
||||
const OS: string = typeof window !== 'undefined' ? window.navigator.platform : '';
|
||||
const userAgent = typeof window !== 'undefined' ? window.navigator.userAgent : '';
|
||||
if (OS.includes('Mac')) return 1;
|
||||
if (OS.includes('Win')) return 2;
|
||||
if (OS.includes('iPhone')) return 3;
|
||||
if (OS.includes('Android')) return 4;
|
||||
if (OS.includes('Android') || userAgent.includes("SamsungBrowser")) return 4;
|
||||
return 0;
|
||||
}, [])
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue