From 32857ce1df32496109cdb386dfd2e550018b8b92 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Thu, 5 May 2022 16:23:16 +0000 Subject: [PATCH] Update content of files --- .../en/android/groups_and_channels.html | 2 +- .../en/macos/settings.html | 2 +- data/webappcontent.telegram.org/demo.html | 15 +++++++++------ 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/data/translations.telegram.org/en/android/groups_and_channels.html b/data/translations.telegram.org/en/android/groups_and_channels.html index e15efa7bc4..1ce837e48f 100644 --- a/data/translations.telegram.org/en/android/groups_and_channels.html +++ b/data/translations.telegram.org/en/android/groups_and_channels.html @@ -13125,7 +13125,7 @@
- +
DiscardSelectionAlertMessage
diff --git a/data/translations.telegram.org/en/macos/settings.html b/data/translations.telegram.org/en/macos/settings.html index 3a84cb4ce5..67f0db340d 100644 --- a/data/translations.telegram.org/en/macos/settings.html +++ b/data/translations.telegram.org/en/macos/settings.html @@ -6765,7 +6765,7 @@
- +
VoiceChat.RequestAccess
diff --git a/data/webappcontent.telegram.org/demo.html b/data/webappcontent.telegram.org/demo.html index 67076d5788..c10f4d795e 100644 --- a/data/webappcontent.telegram.org/demo.html +++ b/data/webappcontent.telegram.org/demo.html @@ -99,6 +99,9 @@ .err { color: red; } + .status_need { + display: none; + } #fixed_wrap { position: fixed; left: 0; @@ -184,7 +187,7 @@
Data passed to webview. - + Checking hash...
@@ -345,21 +348,21 @@ $('#webview_data').html(JSON.stringify(initDataUnsafe, null, 2)); $('#theme_data').html(JSON.stringify(Telegram.WebApp.themeParams, null, 2)); $('#regular_link').attr('href', $('#regular_link').attr('href') + location.hash); $('#text_field').focus(); -if (initDataUnsafe.query_id && initData) { - $('#webview_data_status').show(); +if (initDataUnsafe.query_id && initData && $('#webview_data_status').hasClass('status_need')) { + $('#webview_data_status').removeClass('status_need'); $.ajax('/demo/checkData', { type: 'POST', data: {_auth: initData}, dataType: 'json', success: function(result) { if (result.ok) { - $('#webview_data_status').html('Hash is correct').addClass('ok'); + $('#webview_data_status').html('Hash is correct (async)').addClass('ok'); } else { - $('#webview_data_status').html(result.error).addClass('err'); + $('#webview_data_status').html(result.error + ' (async)').addClass('err'); } }, error: function(xhr) { - $('#webview_data_status').html('Server error').addClass('err'); + $('#webview_data_status').html('Server error (async)').addClass('err'); } }); }