forked from mystiq/hydrogen-web
fix undefined variable, this probably breaks restoring the last url
This commit is contained in:
parent
eb8fdf5c27
commit
1f17edc248
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ export class URLRouter {
|
||||||
tryRestoreLastUrl() {
|
tryRestoreLastUrl() {
|
||||||
const lastNavPath = this._urlAsNavPath(this._history.getLastUrl() || "");
|
const lastNavPath = this._urlAsNavPath(this._history.getLastUrl() || "");
|
||||||
if (lastNavPath.segments.length !== 0) {
|
if (lastNavPath.segments.length !== 0) {
|
||||||
this._applyNavPathToNavigation(navPath);
|
this._applyNavPathToNavigation(lastNavPath);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue