This commit is contained in:
xds
2025-10-27 17:02:59 +03:00
parent 99890102ef
commit 1963f06cc7
3 changed files with 14 additions and 8 deletions

View File

@@ -5,6 +5,8 @@ import {computed, onMounted, ref} from "vue";
import Toolbar from "@/components/Toolbar.vue";
import {useToolbarStore} from "@/stores/toolbar-store";
import router from "@/router/index.js";
import {WebApp} from "@grammyjs/web-app";
const spaceStore = useSpaceStore();
const toolbarStore = useToolbarStore()
@@ -41,6 +43,11 @@ onMounted(() => {
toolbarStore.registerHandler('openSpacePicker', () => {
isSpaceSelectorVisible.value = true
});
WebApp.ready()
let tgApp = window.Telegram.WebApp
tgApp.requestFullscreen()
tgApp.lockOrientation()
})
</script>