From d23446b409077566572822bb77d76a931411c434 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Mon, 14 Oct 2019 16:33:41 -0400 Subject: [PATCH] [F] Push state after updating tab --- src/components/app/app.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/app/app.ts b/src/components/app/app.ts index 1251a1c..3c2c458 100644 --- a/src/components/app/app.ts +++ b/src/components/app/app.ts @@ -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; } /**