@tonconnect/ui 2.0.3 → 2.0.4

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.cjs CHANGED
@@ -8334,11 +8334,11 @@ function redirectToTelegram(universalLink, options) {
8334
8334
  directLinkUrl.searchParams.append("startapp", "tonconnect");
8335
8335
  }
8336
8336
  if (isInTMA()) {
8337
- if (isTmaPlatform("ios", "android")) {
8337
+ if (isTmaPlatform("ios", "android", "macos")) {
8338
8338
  options.returnStrategy = "back";
8339
8339
  options.twaReturnUrl = void 0;
8340
8340
  sendOpenTelegramLink(addReturnStrategy(directLinkUrl.toString(), options));
8341
- } else if (isTmaPlatform("macos", "tdesktop")) {
8341
+ } else if (isTmaPlatform("tdesktop")) {
8342
8342
  sendOpenTelegramLink(addReturnStrategy(directLinkUrl.toString(), options));
8343
8343
  } else if (isTmaPlatform("weba")) {
8344
8344
  sendOpenTelegramLink(addReturnStrategy(directLinkUrl.toString(), options));
@@ -10904,7 +10904,7 @@ class TonConnectUITracker {
10904
10904
  }
10905
10905
  }
10906
10906
  }
10907
- const tonConnectUiVersion = "2.0.3";
10907
+ const tonConnectUiVersion = "2.0.4";
10908
10908
  class TonConnectUI {
10909
10909
  constructor(options) {
10910
10910
  __publicField(this, "walletInfoStorage", new WalletInfoStorage());