[F] Remove lastTab from history state
This commit is contained in:
@@ -34,8 +34,8 @@ export default class NavController
|
|||||||
if (e.state)
|
if (e.state)
|
||||||
{
|
{
|
||||||
// Restore previous tab
|
// Restore previous tab
|
||||||
console.log(`onPopState: Current: ${this.index}, Previous: ${e.state.lastTab}`);
|
console.log(`onPopState: Current: ${JSON.stringify(this.index)}, Previous: ${JSON.stringify(e.state)}`);
|
||||||
this.updateIndex(e.state.lastTab, false);
|
this.updateIndex(e.state, false);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -65,7 +65,7 @@ export default class NavController
|
|||||||
let url = `/#${index.hash}`;
|
let url = `/#${index.hash}`;
|
||||||
|
|
||||||
// Push history state
|
// Push history state
|
||||||
window.history.pushState({lastTab: index}, '', url);
|
window.history.pushState(index, '', url);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update title
|
// Update title
|
||||||
|
|||||||
Reference in New Issue
Block a user