From ce67992525f47fe9427184b9688fb916444411fd Mon Sep 17 00:00:00 2001 From: Jack Date: Thu, 10 Sep 2020 23:25:58 +0100 Subject: [PATCH] added a timeout to make sure the config is saved to the database --- public/js/settings.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/js/settings.js b/public/js/settings.js index 7a92033ed..8c60389ab 100644 --- a/public/js/settings.js +++ b/public/js/settings.js @@ -789,7 +789,9 @@ $(".pageSettings #loadCustomColorsFromPreset").click((e) => { $("#resetSettingsButton").click((e) => { if (confirm("Press OK to confirm.")) { resetConfig(); - location.reload(); + setTimeout(() => { + location.reload(); + },1000) } });