@tonconnect/ui 2.4.0-beta.3 → 2.4.0-beta.5
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 +4 -4
- package/dist/tonconnect-ui.min.js.map +1 -1
- package/lib/index.cjs +14 -2
- package/lib/index.cjs.map +1 -1
- package/lib/index.mjs +14 -2
- package/lib/index.mjs.map +1 -1
- package/package.json +2 -2
package/lib/index.cjs
CHANGED
|
@@ -1727,7 +1727,7 @@ function openLinkBlank(href) {
|
|
|
1727
1727
|
}
|
|
1728
1728
|
function openDeeplinkWithFallback(href, fallback) {
|
|
1729
1729
|
const doFallback = () => {
|
|
1730
|
-
if (isBrowser("safari") || isOS("android") && isBrowser("firefox")) {
|
|
1730
|
+
if (isBrowser("safari") || isOS("android") && isBrowser("firefox") || isOS("windows")) {
|
|
1731
1731
|
return;
|
|
1732
1732
|
}
|
|
1733
1733
|
fallback();
|
|
@@ -2429,6 +2429,18 @@ try {
|
|
|
2429
2429
|
initParams = urlParseHashParams(locationHash);
|
|
2430
2430
|
} catch (e2) {
|
|
2431
2431
|
}
|
|
2432
|
+
try {
|
|
2433
|
+
const launchParamsStorageKey = "ton-connect-session_storage_launchParams";
|
|
2434
|
+
if (Object.entries(initParams).length > 0) {
|
|
2435
|
+
sessionStorage.setItem(launchParamsStorageKey, JSON.stringify(initParams));
|
|
2436
|
+
} else {
|
|
2437
|
+
const savedInitParams = sessionStorage.getItem(launchParamsStorageKey);
|
|
2438
|
+
if (savedInitParams) {
|
|
2439
|
+
initParams = JSON.parse(savedInitParams);
|
|
2440
|
+
}
|
|
2441
|
+
}
|
|
2442
|
+
} catch (e2) {
|
|
2443
|
+
}
|
|
2432
2444
|
let tmaPlatform = "unknown";
|
|
2433
2445
|
if (initParams == null ? void 0 : initParams.tgWebAppPlatform) {
|
|
2434
2446
|
tmaPlatform = (_a = initParams.tgWebAppPlatform) != null ? _a : "unknown";
|
|
@@ -12772,7 +12784,7 @@ class TonConnectUITracker {
|
|
|
12772
12784
|
}
|
|
12773
12785
|
}
|
|
12774
12786
|
}
|
|
12775
|
-
const tonConnectUiVersion = "2.4.0-beta.
|
|
12787
|
+
const tonConnectUiVersion = "2.4.0-beta.5";
|
|
12776
12788
|
class TonConnectEnvironment {
|
|
12777
12789
|
constructor() {
|
|
12778
12790
|
this.userAgent = getUserAgent();
|