diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/Policy.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/Policy.js b/src/common/Policy.js index 3c5e498..c265f17 100644 --- a/src/common/Policy.js +++ b/src/common/Policy.js @@ -80,6 +80,7 @@ var {Permissions, Policy, Sites} = (() => { } static origin(site) { + if (!site) return ""; try { let objUrl = site.href ? site : new URL(site); let origin = objUrl.origin; |