fix(docs): set theme after redirecting

This commit is contained in:
Alex 2020-04-01 17:25:59 +03:00
parent 3ba05e9eb1
commit e0aa17bbd0

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());
}