Skip to content

Commit

Permalink
attempt #2 to fix u2f
Browse files Browse the repository at this point in the history
  • Loading branch information
blurpesec committed Jun 25, 2020
1 parent 0e5038c commit 9c24af7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ export const DeterministicWalletService = ({
}: // walletId
EventHandlers): IDeterministicWalletService => {
const init = async (_: WalletId, asset: ExtendedAsset) => {
const isWebUSBSupported = await TransportWebUSB.isSupported().catch(() => false);
const isWebUSBSupported = !navigator.platform.includes('Win')
? await TransportWebUSB.isSupported().catch(() => false)
: false;
console.debug('[isWebUSBSupported]: ', isWebUSBSupported);
const wallet = isWebUSBSupported ? new LedgerUSB() : new LedgerU2F(); // @todo - fix the walletId & type
wallet
.initialize()
Expand Down

0 comments on commit 9c24af7

Please sign in to comment.