Skip to content

Commit

Permalink
Fix Trezor adapter on Firefox browsers (#927)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielKerekes authored Mar 14, 2024
1 parent 828cafd commit ba90b65
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/silly-rats-accept.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@solana/wallet-adapter-trezor': patch
---

Fix Trezor adapter on Firefox browsers
5 changes: 1 addition & 4 deletions packages/wallets/trezor/src/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ export class TrezorWalletAdapter extends BaseSignerWalletAdapter {
private _connecting: boolean;
private _publicKey: PublicKey | null;
private _readyState: WalletReadyState =
typeof window === 'undefined' ||
typeof document === 'undefined' ||
typeof navigator === 'undefined' ||
!navigator.hid
typeof window === 'undefined' || typeof document === 'undefined'
? WalletReadyState.Unsupported
: WalletReadyState.Loadable;

Expand Down

0 comments on commit ba90b65

Please sign in to comment.