@tonconnect/ui 2.0.9-beta.2 → 2.0.9-beta.3
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/tonconnect-ui.min.js +2 -2
- package/dist/tonconnect-ui.min.js.map +1 -1
- package/lib/index.cjs +12 -13
- package/lib/index.cjs.map +1 -1
- package/lib/index.mjs +12 -13
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.cjs
CHANGED
|
@@ -8450,29 +8450,28 @@ function redirectToTelegram(universalLink, options) {
|
|
|
8450
8450
|
const isChrome = isBrowser("chrome");
|
|
8451
8451
|
const isFirefox = isBrowser("firefox");
|
|
8452
8452
|
const useDeepLink = (isChrome || isFirefox) && !options.forceRedirect;
|
|
8453
|
+
const linkWithStrategy = addReturnStrategy(
|
|
8454
|
+
directLinkUrl.toString(),
|
|
8455
|
+
options.returnStrategy
|
|
8456
|
+
);
|
|
8453
8457
|
if (useDeepLink) {
|
|
8454
|
-
const linkWithStrategy = addReturnStrategy(
|
|
8455
|
-
directLinkUrl.toString(),
|
|
8456
|
-
options.returnStrategy
|
|
8457
|
-
);
|
|
8458
8458
|
const deepLink = convertToTGDeepLink(linkWithStrategy);
|
|
8459
8459
|
openDeeplinkWithFallback(deepLink, () => openLinkBlank(linkWithStrategy));
|
|
8460
8460
|
} else {
|
|
8461
|
-
const linkWithStrategy = addReturnStrategy(
|
|
8462
|
-
directLinkUrl.toString(),
|
|
8463
|
-
options.returnStrategy
|
|
8464
|
-
);
|
|
8465
8461
|
openLinkBlank(linkWithStrategy);
|
|
8466
8462
|
}
|
|
8467
8463
|
} else if (isOS("macos", "windows", "linux")) {
|
|
8468
8464
|
options.returnStrategy = "back";
|
|
8469
8465
|
options.twaReturnUrl = void 0;
|
|
8466
|
+
const linkWithStrategy = addReturnStrategy(
|
|
8467
|
+
directLinkUrl.toString(),
|
|
8468
|
+
options.returnStrategy
|
|
8469
|
+
);
|
|
8470
8470
|
if (options.forceRedirect) {
|
|
8471
|
-
openLinkBlank(
|
|
8471
|
+
openLinkBlank(linkWithStrategy);
|
|
8472
8472
|
} else {
|
|
8473
|
-
const
|
|
8474
|
-
|
|
8475
|
-
openDeeplinkWithFallback(deepLink, () => openLinkBlank(link));
|
|
8473
|
+
const deepLink = convertToTGDeepLink(linkWithStrategy);
|
|
8474
|
+
openDeeplinkWithFallback(deepLink, () => openLinkBlank(linkWithStrategy));
|
|
8476
8475
|
}
|
|
8477
8476
|
} else {
|
|
8478
8477
|
openLinkBlank(addReturnStrategy(directLinkUrl.toString(), options));
|
|
@@ -10965,7 +10964,7 @@ class TonConnectUITracker {
|
|
|
10965
10964
|
}
|
|
10966
10965
|
}
|
|
10967
10966
|
}
|
|
10968
|
-
const tonConnectUiVersion = "2.0.9-beta.
|
|
10967
|
+
const tonConnectUiVersion = "2.0.9-beta.3";
|
|
10969
10968
|
class TonConnectUI {
|
|
10970
10969
|
constructor(options) {
|
|
10971
10970
|
__publicField(this, "walletInfoStorage", new WalletInfoStorage());
|