diff --git a/src/App.vue b/src/App.vue index 51ae642..8aac9f2 100644 --- a/src/App.vue +++ b/src/App.vue @@ -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();