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;
}
if (window.history.length >= 1) {
if (window.history.length > 1) {
tgApp.BackButton.show();
backHandler = () => {
if (window.history.length >= 1) {
if (window.history.length > 1) {
router.back();
} else {
tgApp.close();