Skip to content

Commit

Permalink
Merge pull request #119 from Bizordec/main
Browse files Browse the repository at this point in the history
fix: autoConnect not working in Firefox
  • Loading branch information
johnson86tw authored Jan 29, 2023
2 parents be2bb15 + 5b0af51 commit a47313e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/connectors/metaMask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class MetaMaskConnector extends Connector<
static async checkConnection() {
if (typeof window !== 'undefined' && !!window.ethereum) {
const provider = window.ethereum as MetaMaskProvider
if (provider.selectedAddress) {
if ((await provider.request({ method: 'eth_accounts' })).length !== 0) {
return true
}
}
Expand Down

1 comment on commit a47313e

@vercel
Copy link

@vercel vercel bot commented on a47313e Jan 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

vue-dapp – ./

vue-dapp-git-main-chnejohnson.vercel.app
vue-dapp-chnejohnson.vercel.app
vuedapp.vercel.app

Please sign in to comment.