[XSS] Automatically reload page when clearing XSS choice from popup.

This commit is contained in:
hackademix 2022-03-13 12:20:07 +01:00
parent 167a4f3f98
commit 4c6672bb21
1 changed files with 4 additions and 1 deletions

View File

@ -206,11 +206,14 @@ var UI = (() => {
delete xssUserChoices[o.value]; delete xssUserChoices[o.value];
o.remove(); o.remove();
} }
let reloadAffected = false;
if (list.options.length === 0) { if (list.options.length === 0) {
choicesUI.classList.remove("populated"); choicesUI.classList.remove("populated");
reloadAffected = true;
} }
UI.updateSettings({ UI.updateSettings({
xssUserChoices xssUserChoices,
reloadAffected,
}); });
}; };
} }