diff options
author | hackademix | 2018-10-06 12:55:12 +0200 |
---|---|---|
committer | hackademix | 2018-10-06 18:13:19 +0200 |
commit | c9c7b7aefea74020565b829da5370152ee0ebac5 (patch) | |
tree | 9131ba70463bb8fa7b906af88de07a8b3d6fb236 | |
parent | 4bd8da62b8e3192c28ef6beb2833e5971adcc230 (diff) | |
download | noscript-c9c7b7aefea74020565b829da5370152ee0ebac5.tar.gz noscript-c9c7b7aefea74020565b829da5370152ee0ebac5.tar.xz noscript-c9c7b7aefea74020565b829da5370152ee0ebac5.zip |
Fixed preset customization UI showing inherited DEFAULT permissions if a protocol-level preset exists.
-rw-r--r-- | src/ui/ui.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/ui.js b/src/ui/ui.js index 73f1dc5..205d2a9 100644 --- a/src/ui/ui.js +++ b/src/ui/ui.js @@ -614,7 +614,7 @@ var UI = (() => { } let hostname = Sites.toExternal(url.hostname); - let overrideDefault = url.protocol && site !== url.protocol ? + let overrideDefault = site && url.protocol && site !== url.protocol ? policy.get(url.protocol, contextMatch) : null; if (overrideDefault && !overrideDefault.siteMatch) overrideDefault = null; |