diff --git a/src/App.vue b/src/App.vue index 370fc9a..1d7ddb8 100644 --- a/src/App.vue +++ b/src/App.vue @@ -64,10 +64,13 @@ onMounted(() => { if (tgApp) { try { tgApp.expand?.(); - // tgApp.requestFullscreen?.(); + platform.value = tgApp.platform + if (['ios', 'android'].includes(platform.value)) { + tgApp.requestFullscreen?.(); + } tgApp.lockOrientation?.(); tgApp.disableVerticalSwipes() - platform.value = tgApp.platform + tgApp.ready(); setupBackButton(); } catch (err) {