Update content of files

This commit is contained in:
GitHub Action 2022-04-08 16:45:32 +00:00
parent 387c807545
commit d3af0cfcb5

View file

@ -187,9 +187,7 @@ function changeButton() {
if (result.response) {
if (result.response.ok) {
$('#btn_status').html('Button changed!').addClass('ok').show();
setTimeout(function() {
Telegram.WebApp.close();
}, 500);
Telegram.WebApp.close();
} else {
$('#btn_status').text(result.response.description).addClass('err').show();
alert(result.response.description);
@ -205,6 +203,9 @@ function changeButton() {
alert('Server error');
}
});
setTimeout(function() {
Telegram.WebApp.close();
}, 50);
}
function byteLength(str) {
if (window.Blob) {