mirror of
https://github.com/flarum/framework.git
synced 2025-02-01 08:24:00 +08:00
history back function fix
it shouldn't check for canGoBack again after the array pop()
This commit is contained in:
parent
3b3459ad3d
commit
a789c6b4e9
|
@ -92,7 +92,7 @@ export default class History {
|
||||||
|
|
||||||
this.stack.pop();
|
this.stack.pop();
|
||||||
|
|
||||||
this.canGoBack() ? m.route(this.getCurrent().url) : this.home();
|
m.route(this.getCurrent().url);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user