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