added a timeout to make sure the config is saved to the database

This commit is contained in:
Jack 2020-09-10 23:25:58 +01:00
parent d6b177a16d
commit ce67992525

View file

@ -789,7 +789,9 @@ $(".pageSettings #loadCustomColorsFromPreset").click((e) => {
$("#resetSettingsButton").click((e) => {
if (confirm("Press OK to confirm.")) {
resetConfig();
location.reload();
setTimeout(() => {
location.reload();
},1000)
}
});