before remake add chat window
This commit is contained in:
@@ -3,9 +3,7 @@ import type { WebApp } from "@twa-dev/types"
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
Telegram: {
|
||||
WebApp: WebApp
|
||||
}
|
||||
Telegram: { WebApp: WebApp }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,6 +11,7 @@ export default defineBoot(({ app }) => {
|
||||
const tg = window.Telegram?.WebApp
|
||||
|
||||
tg.ready()
|
||||
tg.disableVerticalSwipes()
|
||||
sessionStorage.setItem('isTelegram', tg.initData ? 'true' : 'false')
|
||||
|
||||
const platform = tg.platform.toLowerCase()
|
||||
|
||||
Reference in New Issue
Block a user