Files
luminic-front/index.html
Vladimir Voronin 09666ee717 some tg tests
2024-10-25 01:26:23 +03:00

29 lines
1.0 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
<link rel="manifest" href="/manifest.json">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="apple-touch-icon" href="/src/assets/1024.png">
<script src="https://telegram.org/js/telegram-web-app.js"></script>
<title>Luminic Space</title>
</head>
<body>
<script type="text/javascript">
if (window.Telegram.WebApp) {
const tg = window.Telegram.WebApp;
tg.expand(); // Разворачиваем веб-приложение на весь экран
// Получаем информацию о пользователе и выводим её
const user = tg.initDataUnsafe.user;
console.log(user);
}
</script>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>