Skip to content

Commit

Permalink
delete persist parameter when disabling special features
Browse files Browse the repository at this point in the history
  • Loading branch information
kritzl committed Apr 1, 2024
1 parent 4874e24 commit 483d0c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mafiasi/base/static/js/misc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 483d0c1

Please sign in to comment.