From 483d0c13168f3f1ea5f64d863f307ccc0328d113 Mon Sep 17 00:00:00 2001 From: kritzl Date: Mon, 1 Apr 2024 04:03:24 +0200 Subject: [PATCH] delete persist parameter when disabling special features --- mafiasi/base/static/js/misc.js | 1 + 1 file changed, 1 insertion(+) diff --git a/mafiasi/base/static/js/misc.js b/mafiasi/base/static/js/misc.js index d44ebef..0ab8b3d 100644 --- a/mafiasi/base/static/js/misc.js +++ b/mafiasi/base/static/js/misc.js @@ -17,6 +17,7 @@ function disableSpecialFeature() { document.cookie = `disable-special=True; path=/; expires=${tomorrow.toUTCString()}; Secure`; let url = new URL(location.href); url.searchParams.delete('specialFeature'); + url.searchParams.delete('persistSpecialFeatureForThisSession'); window.location.href = url }