Fixed preset customization UI showing inherited DEFAULT permissions if a protocol-level preset exists.

This commit is contained in:
hackademix 2018-10-06 12:55:12 +02:00
parent 4bd8da62b8
commit c9c7b7aefe
1 changed files with 1 additions and 1 deletions

View File

@ -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;