tg app fix sizes
This commit is contained in:
@@ -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 */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user