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