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
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);
|
console.warn('[Telegram.WebApp] Header color is not supported in version ' + webAppVersion);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!versionAtLeast('6.10')) {
|
if (!versionAtLeast('6.9')) {
|
||||||
if (themeParams.bg_color &&
|
if (themeParams.bg_color &&
|
||||||
themeParams.bg_color == color) {
|
themeParams.bg_color == color) {
|
||||||
color = 'bg_color';
|
color = 'bg_color';
|
||||||
|
@ -483,14 +483,14 @@
|
||||||
var head_color = null, color_key = null;
|
var head_color = null, color_key = null;
|
||||||
if (color == 'bg_color' || color == 'secondary_bg_color') {
|
if (color == 'bg_color' || color == 'secondary_bg_color') {
|
||||||
color_key = color;
|
color_key = color;
|
||||||
} else if (versionAtLeast('6.10')) {
|
} else if (versionAtLeast('6.9')) {
|
||||||
head_color = parseColorToHex(color);
|
head_color = parseColorToHex(color);
|
||||||
if (!head_color) {
|
if (!head_color) {
|
||||||
console.error('[Telegram.WebApp] Header color format is invalid', color);
|
console.error('[Telegram.WebApp] Header color format is invalid', color);
|
||||||
throw Error('WebAppHeaderColorInvalid');
|
throw Error('WebAppHeaderColorInvalid');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!versionAtLeast('6.10') &&
|
if (!versionAtLeast('6.9') &&
|
||||||
color_key != 'bg_color' &&
|
color_key != 'bg_color' &&
|
||||||
color_key != 'secondary_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);
|
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="MobileOptimized" content="176" />
|
||||||
<meta name="HandheldFriendly" content="True" />
|
<meta name="HandheldFriendly" content="True" />
|
||||||
<meta name="robots" content="noindex, nofollow" />
|
<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>
|
<script>
|
||||||
function setThemeClass() {
|
function setThemeClass() {
|
||||||
document.documentElement.className = Telegram.WebApp.colorScheme;
|
document.documentElement.className = Telegram.WebApp.colorScheme;
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<meta name="MobileOptimized" content="176" />
|
<meta name="MobileOptimized" content="176" />
|
||||||
<meta name="HandheldFriendly" content="True" />
|
<meta name="HandheldFriendly" content="True" />
|
||||||
<meta name="robots" content="noindex,nofollow" />
|
<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>
|
<script>
|
||||||
function setThemeClass() {
|
function setThemeClass() {
|
||||||
document.documentElement.className = Telegram.WebApp.colorScheme;
|
document.documentElement.className = Telegram.WebApp.colorScheme;
|
||||||
|
|
Loading…
Reference in a new issue