Skip to content

Commit

Permalink
Fix theme on redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasAFink committed May 21, 2024
1 parent 382813b commit 76f0f7a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/src/core/core.router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ router.beforeEach(async (to, from, next) => {

next({ path: to.path, query: to.query, replace: true });
} else {
vuetify.framework.theme.themes.light = adminTheme.themes.light;
vuetify.framework.theme.themes.light = kobitTheme.themes.light;
vuetify.framework.theme.themes.dark = kobitTheme.themes.dark;
next({ path: '/' });
}
vuetify.framework.theme.themes.light = adminTheme.themes.light;
vuetify.framework.theme.themes.dark = adminTheme.themes.dark;
} catch (error) {
vuetify.framework.theme.themes.light = adminTheme.themes.light;
vuetify.framework.theme.themes.light = kobitTheme.themes.light;
vuetify.framework.theme.themes.dark = kobitTheme.themes.dark;
next({ path: '/' });
}
} else {
Expand Down

0 comments on commit 76f0f7a

Please sign in to comment.