fix
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user