summaryrefslogtreecommitdiff
path: root/src/ui/options.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/options.js')
-rw-r--r--src/ui/options.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/options.js b/src/ui/options.js
index 1932269..2a52a82 100644
--- a/src/ui/options.js
+++ b/src/ui/options.js
@@ -103,7 +103,7 @@
}
let button = document.querySelector("#btn-delete-xss-choices");
let choices = UI.xssUserChoices;
- button.disabled = Object.keys(choices).length === 0;
+ button.disabled = !choices || Object.keys(choices).length === 0;
button.onclick = () => {
UI.updateSettings({
xssUserChoices: {}