tg app fix sizes

This commit is contained in:
xds
2025-10-27 17:24:35 +03:00
parent 43b9f257b3
commit 87441da19b

View File

@@ -38,7 +38,7 @@ onMounted(() => {
const tgApp = (window as any)?.Telegram?.WebApp;
if (tgApp) {
try {
tgApp.ready();
tgApp.expand?.(); // более мягкий вариант, чем requestFullscreen()
tgApp.requestFullscreen?.();
tgApp.lockOrientation?.();
@@ -56,6 +56,7 @@ onMounted(() => {
tg.BackButton.onClick(handleBack);
}
tgApp.ready();
} catch {
/* ignore */
}