fixed themes showing up twice. fixed #307

This commit is contained in:
Jack 2020-08-21 17:33:25 +01:00
parent b887d71a30
commit cc6ff8fb73
2 changed files with 5 additions and 2 deletions

View file

@ -278,6 +278,7 @@ firebase.auth().onAuthStateChanged(function (user) {
if ($(".pageLogin").hasClass("active")) {
changePage("account");
}
refreshThemeButtons();
accountIconLoading(false);
updateFilterTags();
updateCommandsTagsList();

View file

@ -234,8 +234,10 @@ function setDifficulty(diff, nosave) {
//set fav themes
function setFavThemes(themes, nosave) {
config.favThemes = themes;
refreshThemeButtons();
if (!nosave) saveConfigToCookie();
if (!nosave) {
refreshThemeButtons();
saveConfigToCookie();
}
}
//blind mode