We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37ea679 commit 7ec328fCopy full SHA for 7ec328f
src/connect/wallets/evm/MetaMask.tsx
@@ -271,17 +271,23 @@ export const isMetaMask = (
271
272
// Brave tries to make itself look like MetaMask
273
// Could also try RPC `web3_clientVersion` if following is unreliable
274
- if (ethereum.isBraveWallet && !ethereum._events && !ethereum._state) {
275
- return false;
276
- }
+ try {
+ if (ethereum.isBraveWallet && !ethereum._events && !ethereum._state) {
+ return false;
277
+ }
278
+ } catch {}
279
- if (ethereum.isTokenPocket) {
280
281
+ if (ethereum.isTokenPocket) {
282
283
284
285
- if (ethereum.isTokenary) {
286
287
+ if (ethereum.isTokenary) {
288
289
290
291
292
return true;
293
};
0 commit comments