@tonconnect/ui 2.0.1-beta.0 → 2.0.1-beta.1

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
@@ -2814,7 +2814,7 @@ function isDevice(device) {
2814
2814
  return width > maxWidth.mobile;
2815
2815
  default:
2816
2816
  case "mobile":
2817
- return width <= maxWidth.mobile;
2817
+ return width <= maxWidth.mobile || isOS("ios", "android");
2818
2818
  }
2819
2819
  }
2820
2820
  function media(device) {
@@ -8314,7 +8314,7 @@ function redirectToTelegram(universalLink, options) {
8314
8314
  }
8315
8315
  } else {
8316
8316
  if (isOS("ios", "android")) {
8317
- options.returnStrategy = "none";
8317
+ options.returnStrategy = location.href;
8318
8318
  openLinkBlank(addReturnStrategy(directLinkUrl.toString(), options.returnStrategy));
8319
8319
  } else if (isOS("macos", "windows", "linux")) {
8320
8320
  options.returnStrategy = "none";