Skip to content

Commit

Permalink
fix: isInstalled() check for gsw (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
CarmitKl authored Apr 26, 2022
1 parent a37b709 commit 1881192
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wallets/get-starknet-wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ export class GetStarknetWallet {
}

isInstalled() {
return Boolean(window.starknet);
const version = window.starknet?.version;
return version && version !== 'uninstalled';
}

install() {
Expand Down

0 comments on commit 1881192

Please sign in to comment.