summaryrefslogtreecommitdiff
path: root/src/ui/options.js
diff options
context:
space:
mode:
authorhackademix2019-02-01 01:16:33 +0100
committerhackademix2019-02-01 01:16:33 +0100
commit20b689d015ea5743099bdafcac0c6ca6519c22db (patch)
tree61e9326ba26205907f3c7381cf13a19169a958f5 /src/ui/options.js
parent2fa009673f3d51b14389f8e25075de394290b32c (diff)
downloadnoscript-20b689d015ea5743099bdafcac0c6ca6519c22db.tar.gz
noscript-20b689d015ea5743099bdafcac0c6ca6519c22db.tar.xz
noscript-20b689d015ea5743099bdafcac0c6ca6519c22db.zip
Fallback XSS filtering to XSS Auditor since asynchronous webRequest handlers are not supported by Chromium.
Diffstat (limited to 'src/ui/options.js')
-rw-r--r--src/ui/options.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/options.js b/src/ui/options.js
index 31cf5c3..a3f7fe8 100644
--- a/src/ui/options.js
+++ b/src/ui/options.js
@@ -8,9 +8,9 @@
let version = browser.runtime.getManifest().version;
document.querySelector("#version").textContent = _("Version", version);
// simple general options
-
+
let opt = UI.wireOption;
-
+
opt("global", o => {
if (o) {
policy.enforced = !o.checked;
@@ -96,7 +96,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: {}