tg app fix sizes
This commit is contained in:
@@ -64,10 +64,13 @@ onMounted(() => {
|
|||||||
if (tgApp) {
|
if (tgApp) {
|
||||||
try {
|
try {
|
||||||
tgApp.expand?.();
|
tgApp.expand?.();
|
||||||
// tgApp.requestFullscreen?.();
|
platform.value = tgApp.platform
|
||||||
|
if (['ios', 'android'].includes(platform.value)) {
|
||||||
|
tgApp.requestFullscreen?.();
|
||||||
|
}
|
||||||
tgApp.lockOrientation?.();
|
tgApp.lockOrientation?.();
|
||||||
tgApp.disableVerticalSwipes()
|
tgApp.disableVerticalSwipes()
|
||||||
platform.value = tgApp.platform
|
|
||||||
tgApp.ready();
|
tgApp.ready();
|
||||||
setupBackButton();
|
setupBackButton();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user