Fixed themeswitcher

pull/310/head
cagataycivici 2020-05-08 22:15:34 +03:00
parent 42f070f7fd
commit 5cad75ce08
1 changed files with 3 additions and 4 deletions

View File

@ -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;
},