Skip to content

Commit

Permalink
Append SDK path to appDeeplinkUrl (#1363)
Browse files Browse the repository at this point in the history
  • Loading branch information
vishnumad authored Aug 5, 2024
1 parent 6b952f2 commit 2676d62
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/wallet-sdk/src/CoinbaseWalletSDK.native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ export class CoinbaseWalletSDK {
}

const url = new URL(metadata.appDeeplinkUrl);
url.pathname = `/${MOBILE_SDK_RESPONSE_PATH}`;
url.pathname += url.pathname.endsWith('/')
? MOBILE_SDK_RESPONSE_PATH
: `/${MOBILE_SDK_RESPONSE_PATH}`;

this.metadata = {
appName: metadata.appName || 'Dapp',
Expand Down

0 comments on commit 2676d62

Please sign in to comment.