diff options
Diffstat (limited to 'src/ui/options.js')
-rw-r--r-- | src/ui/options.js | 2 |
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: {} |