Skip to content

Commit aa4ad78

Browse files
Merge pull request #314 from mauro1855/master
CloseApp automatically when no more router history
2 parents 821f540 + a834edf commit aa4ad78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Router/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ const resolveHashChange = request => {
346346

347347
/**
348348
* Directional step in history
349-
* @param direction
349+
* @param level
350350
*/
351351
export const step = (level = 0) => {
352352
if (!level || isNaN(level)) {
@@ -362,7 +362,7 @@ export const step = (level = 0) => {
362362
if (isFunction(app._handleAppClose)) {
363363
return app._handleAppClose()
364364
}
365-
return false
365+
return app.application.closeApp()
366366
} else if (history.length) {
367367
// for now we only support history back
368368
const route = history.splice(history.length - level, level)[0]

0 commit comments

Comments
 (0)