From f159d224124de11fda7a7deb09cd1e948037dabb Mon Sep 17 00:00:00 2001 From: gabrielkerekes Date: Thu, 14 Mar 2024 10:59:08 +0100 Subject: [PATCH] Fix Trezor adapter on Firefox browsers --- .changeset/silly-rats-accept.md | 5 +++++ packages/wallets/trezor/src/adapter.ts | 5 +---- 2 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 .changeset/silly-rats-accept.md 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;