Update content of files

This commit is contained in:
GitHub Action 2022-04-09 20:21:15 +00:00
parent 0fdf5e6631
commit bc0668db00
3 changed files with 6 additions and 2 deletions

View file

@ -599,6 +599,10 @@
postEvent('web_app_close');
}
};
Object.defineProperty(window.Telegram.WebApp, 'viewportHeight', {
get: function(){ return (viewportHeight === false ? window.innerHeight : viewportHeight) - mainButtonHeight; },
enumerable: true
});
if (webAppData.theme_params) {
setThemeParams(webAppData.theme_params);

View file

@ -9,7 +9,7 @@
<meta name="MobileOptimized" content="176" />
<meta name="HandheldFriendly" content="True" />
<meta name="robots" content="noindex, nofollow" />
<script src="https://tg.dev/js/telegram-webview.js?8"></script>
<script src="https://tg.dev/js/telegram-webview.js?9"></script>
<script>
function setThemeClass() {
document.documentElement.className = document.documentElement.style.getPropertyValue('--tg-theme-color-scheme');

View file

@ -8,7 +8,7 @@
<meta name="MobileOptimized" content="176" />
<meta name="HandheldFriendly" content="True" />
<meta name="robots" content="noindex,nofollow" />
<script src="https://telegram.org/js/telegram-webview.js?8"></script>
<script src="https://telegram.org/js/telegram-webview.js?9"></script>
<script>
function setThemeClass() {
document.documentElement.className = document.documentElement.style.getPropertyValue('--tg-theme-color-scheme');