From 4c6672bb2131c568771ab5539e70ed2a865f3049 Mon Sep 17 00:00:00 2001 From: hackademix Date: Sun, 13 Mar 2022 12:20:07 +0100 Subject: [PATCH] [XSS] Automatically reload page when clearing XSS choice from popup. --- src/ui/ui.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ui/ui.js b/src/ui/ui.js index 445478e..39fca3e 100644 --- a/src/ui/ui.js +++ b/src/ui/ui.js @@ -206,11 +206,14 @@ var UI = (() => { delete xssUserChoices[o.value]; o.remove(); } + let reloadAffected = false; if (list.options.length === 0) { choicesUI.classList.remove("populated"); + reloadAffected = true; } UI.updateSettings({ - xssUserChoices + xssUserChoices, + reloadAffected, }); }; }