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