@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/dist/tonconnect-ui.min.js +2 -2
- package/dist/tonconnect-ui.min.js.map +1 -1
- package/lib/index.cjs +2 -2
- package/lib/index.cjs.map +1 -1
- package/lib/index.mjs +2 -2
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -2809,7 +2809,7 @@ function isDevice(device) {
|
|
|
2809
2809
|
return width > maxWidth.mobile;
|
|
2810
2810
|
default:
|
|
2811
2811
|
case "mobile":
|
|
2812
|
-
return width <= maxWidth.mobile;
|
|
2812
|
+
return width <= maxWidth.mobile || isOS("ios", "android");
|
|
2813
2813
|
}
|
|
2814
2814
|
}
|
|
2815
2815
|
function media(device) {
|
|
@@ -8309,7 +8309,7 @@ function redirectToTelegram(universalLink, options) {
|
|
|
8309
8309
|
}
|
|
8310
8310
|
} else {
|
|
8311
8311
|
if (isOS("ios", "android")) {
|
|
8312
|
-
options.returnStrategy =
|
|
8312
|
+
options.returnStrategy = location.href;
|
|
8313
8313
|
openLinkBlank(addReturnStrategy(directLinkUrl.toString(), options.returnStrategy));
|
|
8314
8314
|
} else if (isOS("macos", "windows", "linux")) {
|
|
8315
8315
|
options.returnStrategy = "none";
|