fix window

This commit is contained in:
Andrey Kondratev
2025-08-28 17:22:39 +05:00
parent 9b53366a98
commit 8213ca33e2

View File

@@ -13,12 +13,10 @@ interface TelegramWebApp {
};
}
declare global {
interface Window {
Telegram?: {
WebApp: TelegramWebApp;
};
}
interface WindowWithTelegram extends Window {
Telegram?: {
WebApp: TelegramWebApp;
};
}
interface VideoResult {
@@ -48,7 +46,7 @@ class QuixoticApp {
private noResults!: HTMLElement;
constructor() {
this.tg = window.Telegram?.WebApp;
this.tg = (window as WindowWithTelegram).Telegram?.WebApp;
this.init();
this.bindEvents();
}