This commit is contained in:
Vladimir Voronin
2024-10-25 14:58:53 +03:00
parent 4cfc43c8b0
commit f7b0ec50bf

View File

@@ -51,7 +51,7 @@ const tg_id = computed(() => {
if (window.Telegram?.WebApp) { if (window.Telegram?.WebApp) {
const tg = window.Telegram.WebApp; const tg = window.Telegram.WebApp;
tg.expand(); // Разворачиваем приложение на весь экран tg.expand(); // Разворачиваем приложение на весь экран
return tg.initDataUnsafe.user?.id ?? nul; // Если tg_id нет, возвращаем null return tg.initDataUnsafe.user?.id ?? null; // Если tg_id нет, возвращаем null
} }
return null; return null;
}); });