fix(docs): set theme after redirecting

This commit is contained in:
Alex 2020-04-01 17:25:59 +03:00 committed by Sergey Andrievskiy
parent ec3ef4e879
commit 9f6a550bdb

View file

@ -37,6 +37,7 @@ export class AppComponent implements OnInit {
.subscribe((params: any) => {
if (params.theme && this.themes.includes(params.theme)) {
this.themeService.changeTheme(params.theme);
this.currentThemeService.setCurrentTheme(params.theme);
} else {
this.themeService.changeTheme(this.currentThemeService.getCurrentTheme());
}