ng lint --fix

merge-requests/3/merge
Nato Boram 2020-07-10 01:00:35 -04:00
parent 9c79603247
commit 154c28682f
No known key found for this signature in database
GPG Key ID: 478E3C64BF88AFFA
1 changed files with 4 additions and 4 deletions

View File

@ -27,14 +27,14 @@ export class ThemeService {
}
switchTheme(): void {
this.setTheme(this.current === Theme.Light ? Theme.Dark : Theme.Light)
this.setTheme(this.current === Theme.Light ? Theme.Dark : Theme.Light);
}
setTheme(theme: Theme): void {
document.querySelector('body')?.classList.remove(this.current)
document.querySelector('body')?.classList.add(theme)
document.querySelector('body')?.classList.remove(this.current);
document.querySelector('body')?.classList.add(theme);
this.current = theme;
this.icon = this.getIcon(theme)
this.icon = this.getIcon(theme);
this.subject$.next(theme);
localStorage.setItem('theme', theme);
}