This commit is contained in:
xds
2026-01-19 12:10:04 +03:00
parent cb511fafb2
commit 6d4a5ad8bd

View File

@@ -51,11 +51,11 @@ function setupBackButton() {
backHandler = null; backHandler = null;
} }
if (window.history.length >= 1) { if (window.history.length > 1) {
tgApp.BackButton.show(); tgApp.BackButton.show();
backHandler = () => { backHandler = () => {
if (window.history.length >= 1) { if (window.history.length > 1) {
router.back(); router.back();
} else { } else {
tgApp.close(); tgApp.close();