fix close btn

This commit is contained in:
xds
2026-01-19 12:09:06 +03:00
parent 198ea31c33
commit cb511fafb2

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();