mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2024-12-26 22:40:24 +01:00
Update content of files
This commit is contained in:
parent
0fdf5e6631
commit
bc0668db00
3 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue