Skip to content

Commit 5408a29

Browse files
author
Aleksandar Cakalic
committed
fix: open Argent's deep link upon connecting
1 parent 2ea4a47 commit 5408a29

File tree

1 file changed

+4
-0
lines changed
  • src/connectors/argent/argentMobile

1 file changed

+4
-0
lines changed

src/connectors/argent/argentMobile/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import { isInArgentMobileAppBrowser } from "../helpers"
3535
import type { StarknetAdapter } from "./modal/starknet/adapter"
3636
import { ArgentX } from "../../injected/argentX"
3737
import { getModalWallet } from "../../../helpers/mapModalWallets"
38+
import { isMobileDevice } from "../../../helpers/navigator"
3839

3940
export interface ArgentMobileConnectorOptions {
4041
dappName: string
@@ -99,6 +100,9 @@ export class ArgentMobileBaseConnector extends Connector {
99100
}
100101

101102
async connect(_args: ConnectArgs = {}): Promise<ConnectorData> {
103+
if (isMobileDevice()) {
104+
window.open("https://www.argent.xyz/app", "_blank")
105+
}
102106
await this.ensureWallet({ onlyQRCode: _args?.onlyQRCode })
103107

104108
if (!this._wallet) {

0 commit comments

Comments
 (0)