@dubsdotapp/expo 0.2.11 → 0.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -888,14 +888,14 @@ var PhantomDeeplinkAdapter = class {
|
|
|
888
888
|
const requestId = nextRequestId();
|
|
889
889
|
const redirectLink = `${this.config.redirectUri}/${requestId}`;
|
|
890
890
|
console.log(TAG2, `connect() requestId=${requestId} redirectLink=${redirectLink}`);
|
|
891
|
+
const appUrl = this.config.appUrl || this.config.redirectUri;
|
|
892
|
+
console.log(TAG2, "Using app_url:", appUrl);
|
|
891
893
|
const params = new URLSearchParams({
|
|
892
894
|
dapp_encryption_public_key: dappPubBase58,
|
|
893
895
|
cluster: this.config.cluster || "mainnet-beta",
|
|
894
|
-
redirect_link: redirectLink
|
|
896
|
+
redirect_link: redirectLink,
|
|
897
|
+
app_url: appUrl
|
|
895
898
|
});
|
|
896
|
-
if (this.config.appUrl) {
|
|
897
|
-
params.set("app_url", this.config.appUrl);
|
|
898
|
-
}
|
|
899
899
|
const url = `https://phantom.app/ul/v1/connect?${params.toString()}`;
|
|
900
900
|
console.log(TAG2, "Opening Phantom connect deeplink...");
|
|
901
901
|
const response = await this.handler.send(url, requestId, this.timeout);
|