[F] Push state after updating tab

This commit is contained in:
Hykilpikonna
2019-10-14 16:33:41 -04:00
parent bc63b457d3
commit d23446b409
+3 -3
View File
@@ -261,14 +261,14 @@ export default class App extends Vue
// Debug output TODO: Remove this
console.log(`onNavigate: Previous: ${this.selectedTab}, New: ${tab}`);
// Update selected tab
this.selectedTab = tab;
// Check url
let url = `/${tab}`;
// Push history state
window.history.pushState({lastTab: this.selectedTab}, '', url);
// Update selected tab
this.selectedTab = tab;
}
/**