Update Ledger capability check (w/ WebUSB) (#3666)
This commit is contained in:
parent
a6a766c36a
commit
33dad7d03a
@ -18,7 +18,7 @@ let ledger: Ledger | null = null;
|
||||
|
||||
export function isLedgerCapable (): boolean {
|
||||
try {
|
||||
return !!api && ALLOWED_CHAINS.map(([g]) => g).includes(api.genesisHash.toHex());
|
||||
return !!(window as unknown as { USB?: unknown }).USB && !!api && ALLOWED_CHAINS.map(([g]) => g).includes(api.genesisHash.toHex());
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user