UI logic tweaking.

This commit is contained in:
Black Hat
2018-09-13 11:58:02 +08:00
parent 1169a0c4d1
commit 3ef1744b5c
2 changed files with 4 additions and 3 deletions

View File

@@ -18,8 +18,8 @@ function pushToStack(stack, page) {
if(stack.depth === 1) {
stack.replace(page)
} else {
stack.clear()
stack.push(page)
stack.pop(null)
stack.replace(page)
}
}
}