From 23316a0f201c1c2468de6b80d240097a7f42b38b Mon Sep 17 00:00:00 2001 From: zumbiepig <121742281+zumbiepig@users.noreply.github.com> Date: Wed, 21 Aug 2024 16:24:38 -0700 Subject: [PATCH] . --- src/resources/scripts/settings.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/resources/scripts/settings.ts b/src/resources/scripts/settings.ts index 77bf3a6..c77f193 100644 --- a/src/resources/scripts/settings.ts +++ b/src/resources/scripts/settings.ts @@ -49,7 +49,8 @@ if (window.location.pathname === '/settings/') { ) === 'zombie' ) { storage.local.set('showAds', false); - alert('Ads have been disabled. Reload the page to apply the changes.'); + alert('Ads have successfully been disabled.'); + window.location.reload(); } else { alert('Wrong password. Join the Discord server to get the password.'); adsCheckbox.checked = true; @@ -57,6 +58,7 @@ if (window.location.pathname === '/settings/') { } else { storage.local.set('showAds', true); alert('Ads have been enabled. Thank you for supporting the project!'); + window.location.reload(); } }); });