File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
src/connectors/argent/argentMobile Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ import { isInArgentMobileAppBrowser } from "../helpers"
3535import type { StarknetAdapter } from "./modal/starknet/adapter"
3636import { ArgentX } from "../../injected/argentX"
3737import { getModalWallet } from "../../../helpers/mapModalWallets"
38+ import { isMobileDevice } from "../../../helpers/navigator"
3839
3940export 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 ) {
You can’t perform that action at this time.
0 commit comments