mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2024-12-25 22:10:25 +01:00
Update content of files
This commit is contained in:
parent
a560a2feb4
commit
68e8e255c9
3 changed files with 5 additions and 5 deletions
|
@ -471,7 +471,7 @@
|
|||
console.warn('[Telegram.WebApp] Header color is not supported in version ' + webAppVersion);
|
||||
return;
|
||||
}
|
||||
if (!versionAtLeast('6.10')) {
|
||||
if (!versionAtLeast('6.9')) {
|
||||
if (themeParams.bg_color &&
|
||||
themeParams.bg_color == color) {
|
||||
color = 'bg_color';
|
||||
|
@ -483,14 +483,14 @@
|
|||
var head_color = null, color_key = null;
|
||||
if (color == 'bg_color' || color == 'secondary_bg_color') {
|
||||
color_key = color;
|
||||
} else if (versionAtLeast('6.10')) {
|
||||
} else if (versionAtLeast('6.9')) {
|
||||
head_color = parseColorToHex(color);
|
||||
if (!head_color) {
|
||||
console.error('[Telegram.WebApp] Header color format is invalid', color);
|
||||
throw Error('WebAppHeaderColorInvalid');
|
||||
}
|
||||
}
|
||||
if (!versionAtLeast('6.10') &&
|
||||
if (!versionAtLeast('6.9') &&
|
||||
color_key != 'bg_color' &&
|
||||
color_key != 'secondary_bg_color') {
|
||||
console.error('[Telegram.WebApp] Header color key should be one of Telegram.WebApp.themeParams.bg_color, Telegram.WebApp.themeParams.secondary_bg_color, \'bg_color\', \'secondary_bg_color\'', color);
|
||||
|
|
|
@ -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-web-app.js?34"></script>
|
||||
<script src="https://tg.dev/js/telegram-web-app.js?35"></script>
|
||||
<script>
|
||||
function setThemeClass() {
|
||||
document.documentElement.className = Telegram.WebApp.colorScheme;
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<meta name="MobileOptimized" content="176" />
|
||||
<meta name="HandheldFriendly" content="True" />
|
||||
<meta name="robots" content="noindex,nofollow" />
|
||||
<script src="https://tg.dev/js/telegram-web-app.js?34"></script>
|
||||
<script src="https://tg.dev/js/telegram-web-app.js?35"></script>
|
||||
<script>
|
||||
function setThemeClass() {
|
||||
document.documentElement.className = Telegram.WebApp.colorScheme;
|
||||
|
|
Loading…
Reference in a new issue