Skip to content

Commit 547878a

Browse files
author
Aleksandar Cakalic
committed
chore: add wallets to default connectors
1 parent d30b5ea commit 547878a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/helpers/defaultConnectors.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ import { BraavosMobileBaseConnector } from "../connectors/braavosMobile"
77
import { WebWalletConnector } from "../connectors/webwallet"
88
import { Braavos } from "../connectors/injected/braavos"
99
import { Argent } from "../connectors/argent"
10+
import { Fordefi } from "../connectors/injected/fordefi"
11+
import { Keplr } from "../connectors/injected/keplr"
12+
import { MetaMask } from "../connectors/injected/metamask"
13+
1014
import { isMobileDevice, isSafari } from "./navigator"
1115

1216
export const defaultConnectors = ({
@@ -25,6 +29,16 @@ export const defaultConnectors = ({
2529

2630
if (!isSafari()) {
2731
defaultConnectors.push(new Braavos())
32+
33+
if (MetaMask.isWalletInjected()) {
34+
defaultConnectors.push(new MetaMask())
35+
}
36+
if (Fordefi.isWalletInjected()) {
37+
defaultConnectors.push(new Fordefi())
38+
}
39+
if (Keplr.isWalletInjected()) {
40+
defaultConnectors.push(new Keplr())
41+
}
2842
}
2943

3044
if (isMobileDevice()) {

0 commit comments

Comments
 (0)