diff --git a/.changeset/silly-rats-accept.md b/.changeset/silly-rats-accept.md new file mode 100644 index 000000000..a53acb0ac --- /dev/null +++ b/.changeset/silly-rats-accept.md @@ -0,0 +1,5 @@ +--- +'@solana/wallet-adapter-trezor': patch +--- + +Fix Trezor adapter on Firefox browsers diff --git a/packages/wallets/trezor/src/adapter.ts b/packages/wallets/trezor/src/adapter.ts index 785ddd509..1af0ca700 100644 --- a/packages/wallets/trezor/src/adapter.ts +++ b/packages/wallets/trezor/src/adapter.ts @@ -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;