mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2024-11-23 15:58:27 +01:00
Update content of files
This commit is contained in:
parent
387c807545
commit
d3af0cfcb5
1 changed files with 4 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue