Fixed themeswitcher
parent
42f070f7fd
commit
5cad75ce08
|
@ -69,13 +69,12 @@ export default {
|
|||
themeElement.setAttribute('href', themeElement.getAttribute('href').replace(this.theme, event.theme));
|
||||
this.theme = event.theme;
|
||||
|
||||
this.removeClass(document.body, 'dark-theme');
|
||||
this.removeClass(document.body, 'dark-theme-alt');
|
||||
|
||||
if (event.dark) {
|
||||
this.addClass(document.body, event.dark);
|
||||
}
|
||||
else {
|
||||
this.removeClass(document.body, 'dark-theme');
|
||||
this.removeClass(document.body, 'dark-theme-alt');
|
||||
}
|
||||
|
||||
this.activeMenuIndex = null;
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue