mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-10 21:53:13 +08:00
added a timeout to make sure the config is saved to the database
This commit is contained in:
parent
d6b177a16d
commit
ce67992525
1 changed files with 3 additions and 1 deletions
|
@ -789,7 +789,9 @@ $(".pageSettings #loadCustomColorsFromPreset").click((e) => {
|
|||
$("#resetSettingsButton").click((e) => {
|
||||
if (confirm("Press OK to confirm.")) {
|
||||
resetConfig();
|
||||
location.reload();
|
||||
setTimeout(() => {
|
||||
location.reload();
|
||||
},1000)
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue