history back function fix

it shouldn't check for canGoBack again after the array pop()
This commit is contained in:
w-4 2019-11-23 13:01:23 +07:00 committed by Daniël Klabbers
parent 3b3459ad3d
commit a789c6b4e9

View File

@ -92,7 +92,7 @@ export default class History {
this.stack.pop();
this.canGoBack() ? m.route(this.getCurrent().url) : this.home();
m.route(this.getCurrent().url);
}
/**