From c9c7b7aefea74020565b829da5370152ee0ebac5 Mon Sep 17 00:00:00 2001 From: hackademix Date: Sat, 6 Oct 2018 12:55:12 +0200 Subject: Fixed preset customization UI showing inherited DEFAULT permissions if a protocol-level preset exists. --- src/ui/ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3