Update content of files

This commit is contained in:
GitHub Action 2022-05-05 16:23:16 +00:00
parent ec9910b523
commit 32857ce1df
3 changed files with 11 additions and 8 deletions

View file

@ -13125,7 +13125,7 @@
<div class="tr-value-media"><a class="tr-value-photo bg-image key-layer" style="background-image:url('https://telegra.ph/file/p/f1e03206fc6/46842703075a9c49f150b17.jpg?c=39,323,515,515,280,280');" href="/screenshots/10947/phrase/DiscardSelectionAlertMessage" data-layer><div class="screenshot-key" style="padding:59px 11px 62px 9px;"><div class="key-box"></div></div></a></div>
<div class="tr-value-body">
<div class="tr-value-default"><a class="tr-value-link" href="/en/android/groups_and_channels/DiscardSelectionAlertMessage"><span class="p-value"><span class="value">Are you sure you want to discard the selection?</span></span></a></div>
<div class="tr-value-default"><a class="tr-value-link" href="/en/android/groups_and_channels/DiscardSelectionAlertMessage"><span class="p-value"><span class="value">Do you want to discard the selection?</span></span></a></div>
<div class="tr-value-key">DiscardSelectionAlertMessage</div>
<div class="tr-value-suggestions">

View file

@ -6765,7 +6765,7 @@
<div class="tr-value-media"><a class="tr-value-photo bg-image key-layer" style="background-image:url('https://telegra.ph/file/p/4f42b207a47/556888c64b3415be9b6a416.jpg?c=13,12,280,280,280,280');" href="/screenshots/8844/phrase/VoiceChat.RequestAccess" data-layer><div class="screenshot-key" style="padding:14px 24px 109px 33px;"><div class="key-box"></div></div></a></div>
<div class="tr-value-body">
<div class="tr-value-default"><a class="tr-value-link" href="/en/macos/settings/VoiceChat.RequestAccess"><span class="p-value"><span class="value">Telegram needs microphone access so that you can speak</span></span></a></div>
<div class="tr-value-default"><a class="tr-value-link" href="/en/macos/settings/VoiceChat.RequestAccess"><span class="p-value"><span class="value">Telegram needs access to your microphone so that you can speak.</span></span></a></div>
<div class="tr-value-key">VoiceChat.RequestAccess</div>
<div class="tr-value-suggestions">

View file

@ -99,6 +99,9 @@
.err {
color: red;
}
.status_need {
display: none;
}
#fixed_wrap {
position: fixed;
left: 0;
@ -184,7 +187,7 @@
<pre><code id="webview_data"></code></pre>
<div class="hint">
Data passed to webview.
<span id="webview_data_status" style="display: none;">Checking hash...</span>
<span id="webview_data_status" class="status_need">Checking hash...</span>
</div>
<pre><code id="theme_data"></code></pre>
<div class="hint">
@ -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');
}
});
}