From 0230fad749c1deaa4a38b6d29943cd095941355c Mon Sep 17 00:00:00 2001 From: Alex Stelea Date: Thu, 30 May 2024 11:49:59 +0100 Subject: [PATCH] code: update feature flag --- .../transport/radix-connect-relay/deep-link.module.ts | 2 -- .../src/modules/wallet-request/wallet-request.ts | 2 +- packages/dapp-toolkit/src/radix-dapp-toolkit.ts | 8 +++----- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/packages/dapp-toolkit/src/modules/wallet-request/transport/radix-connect-relay/deep-link.module.ts b/packages/dapp-toolkit/src/modules/wallet-request/transport/radix-connect-relay/deep-link.module.ts index f7d1cc58..54924169 100644 --- a/packages/dapp-toolkit/src/modules/wallet-request/transport/radix-connect-relay/deep-link.module.ts +++ b/packages/dapp-toolkit/src/modules/wallet-request/transport/radix-connect-relay/deep-link.module.ts @@ -27,8 +27,6 @@ export const DeepLinkModule = (input: { values: Record, ): ResultAsync => { const outboundUrl = new URL(walletUrl) - const currentUrl = new URL(window.origin) - currentUrl.hash = callBackPath Object.entries(values).forEach(([key, value]) => { outboundUrl.searchParams.append(key, value) diff --git a/packages/dapp-toolkit/src/modules/wallet-request/wallet-request.ts b/packages/dapp-toolkit/src/modules/wallet-request/wallet-request.ts index 2c432a3c..e370ff9c 100644 --- a/packages/dapp-toolkit/src/modules/wallet-request/wallet-request.ts +++ b/packages/dapp-toolkit/src/modules/wallet-request/wallet-request.ts @@ -100,7 +100,7 @@ export const WalletRequestModule = (input: { transports.push( RadixConnectRelayModule({ logger, - walletUrl: 'https://d1rxdfxrfmemlj.cloudfront.net', + walletUrl: 'https://dr6vsuukf8610.cloudfront.net', baseUrl: 'https://radix-connect-relay-dev.rdx-works-main.extratools.works', providers: { diff --git a/packages/dapp-toolkit/src/radix-dapp-toolkit.ts b/packages/dapp-toolkit/src/radix-dapp-toolkit.ts index ddf28a47..10e4cd1c 100644 --- a/packages/dapp-toolkit/src/radix-dapp-toolkit.ts +++ b/packages/dapp-toolkit/src/radix-dapp-toolkit.ts @@ -42,9 +42,7 @@ export const RadixDappToolkit = ( featureFlags = [], } = options || {} - const enableExperimentalMobileSupport = featureFlags.includes( - 'ExperimentalMobileSupport', - ) + const isMobileSupported = !featureFlags.includes('DisableMobileSupport') const storageModule = providers?.storageModule ?? @@ -80,7 +78,7 @@ export const RadixDappToolkit = ( networkId, dAppDefinitionAddress, requestInterceptor: options.requestInterceptor, - enableMobile: enableExperimentalMobileSupport, + enableMobile: isMobileSupported, providers: { stateModule, storageModule, @@ -94,7 +92,7 @@ export const RadixDappToolkit = ( logger, networkId, explorer: options.explorer, - enableMobile: enableExperimentalMobileSupport, + enableMobile: isMobileSupported, onDisconnect, dAppDefinitionAddress, providers: {