diff options
Diffstat (limited to 'src/ui')
-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; |