@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.mjs
CHANGED
|
@@ -8445,29 +8445,28 @@ function redirectToTelegram(universalLink, options) {
|
|
|
8445
8445
|
const isChrome = isBrowser("chrome");
|
|
8446
8446
|
const isFirefox = isBrowser("firefox");
|
|
8447
8447
|
const useDeepLink = (isChrome || isFirefox) && !options.forceRedirect;
|
|
8448
|
+
const linkWithStrategy = addReturnStrategy(
|
|
8449
|
+
directLinkUrl.toString(),
|
|
8450
|
+
options.returnStrategy
|
|
8451
|
+
);
|
|
8448
8452
|
if (useDeepLink) {
|
|
8449
|
-
const linkWithStrategy = addReturnStrategy(
|
|
8450
|
-
directLinkUrl.toString(),
|
|
8451
|
-
options.returnStrategy
|
|
8452
|
-
);
|
|
8453
8453
|
const deepLink = convertToTGDeepLink(linkWithStrategy);
|
|
8454
8454
|
openDeeplinkWithFallback(deepLink, () => openLinkBlank(linkWithStrategy));
|
|
8455
8455
|
} else {
|
|
8456
|
-
const linkWithStrategy = addReturnStrategy(
|
|
8457
|
-
directLinkUrl.toString(),
|
|
8458
|
-
options.returnStrategy
|
|
8459
|
-
);
|
|
8460
8456
|
openLinkBlank(linkWithStrategy);
|
|
8461
8457
|
}
|
|
8462
8458
|
} else if (isOS("macos", "windows", "linux")) {
|
|
8463
8459
|
options.returnStrategy = "back";
|
|
8464
8460
|
options.twaReturnUrl = void 0;
|
|
8461
|
+
const linkWithStrategy = addReturnStrategy(
|
|
8462
|
+
directLinkUrl.toString(),
|
|
8463
|
+
options.returnStrategy
|
|
8464
|
+
);
|
|
8465
8465
|
if (options.forceRedirect) {
|
|
8466
|
-
openLinkBlank(
|
|
8466
|
+
openLinkBlank(linkWithStrategy);
|
|
8467
8467
|
} else {
|
|
8468
|
-
const
|
|
8469
|
-
|
|
8470
|
-
openDeeplinkWithFallback(deepLink, () => openLinkBlank(link));
|
|
8468
|
+
const deepLink = convertToTGDeepLink(linkWithStrategy);
|
|
8469
|
+
openDeeplinkWithFallback(deepLink, () => openLinkBlank(linkWithStrategy));
|
|
8471
8470
|
}
|
|
8472
8471
|
} else {
|
|
8473
8472
|
openLinkBlank(addReturnStrategy(directLinkUrl.toString(), options));
|
|
@@ -10960,7 +10959,7 @@ class TonConnectUITracker {
|
|
|
10960
10959
|
}
|
|
10961
10960
|
}
|
|
10962
10961
|
}
|
|
10963
|
-
const tonConnectUiVersion = "2.0.9-beta.
|
|
10962
|
+
const tonConnectUiVersion = "2.0.9-beta.3";
|
|
10964
10963
|
class TonConnectUI {
|
|
10965
10964
|
constructor(options) {
|
|
10966
10965
|
__publicField(this, "walletInfoStorage", new WalletInfoStorage());
|