mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-10 05:17:03 +08:00
fixed themes showing up twice. fixed #307
This commit is contained in:
parent
b887d71a30
commit
cc6ff8fb73
2 changed files with 5 additions and 2 deletions
|
|
@ -278,6 +278,7 @@ firebase.auth().onAuthStateChanged(function (user) {
|
|||
if ($(".pageLogin").hasClass("active")) {
|
||||
changePage("account");
|
||||
}
|
||||
refreshThemeButtons();
|
||||
accountIconLoading(false);
|
||||
updateFilterTags();
|
||||
updateCommandsTagsList();
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue