Skip to content

Commit c9c7b7a

Browse files
committed
Fixed preset customization UI showing inherited DEFAULT permissions if a protocol-level preset exists.
1 parent 4bd8da6 commit c9c7b7a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ui/ui.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ var UI = (() => {
614614
}
615615

616616
let hostname = Sites.toExternal(url.hostname);
617-
let overrideDefault = url.protocol && site !== url.protocol ?
617+
let overrideDefault = site && url.protocol && site !== url.protocol ?
618618
policy.get(url.protocol, contextMatch) : null;
619619
if (overrideDefault && !overrideDefault.siteMatch) overrideDefault = null;
620620

0 commit comments

Comments
 (0)