diff --git a/public/index.html b/public/index.html index ceaee1621..5d5e40c26 100644 --- a/public/index.html +++ b/public/index.html @@ -2744,7 +2744,10 @@

enable ads

If you wish to support me without directly donating you can - enable ads that will be visible at the bottom of the screen + enable ads that will be visible at the bottom of the screen. + Sellout mode also shows ads on both sides of the screen. +
+
(changes will take effect after a refresh).
diff --git a/public/js/userconfig.js b/public/js/userconfig.js index 5911f1c5b..a7aca7734 100644 --- a/public/js/userconfig.js +++ b/public/js/userconfig.js @@ -96,7 +96,7 @@ async function saveConfigToCookie(noDbCheck = false) { path: "/", }); restartCount = 0; - if (!noDbCheck) saveConfigToDB(); + if (!noDbCheck) await saveConfigToDB(); } async function saveConfigToDB() { @@ -638,7 +638,10 @@ function setEnableAds(val, nosave) { val = "off"; } config.enableAds = val; - if (!nosave) saveConfigToCookie(); + if (!nosave) + saveConfigToCookie().then(() => { + setTimeout(location.reload(), 500); + }); } //flip colors