diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/Policy.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/Policy.js b/src/common/Policy.js index c265f17..ca3c04c 100644 --- a/src/common/Policy.js +++ b/src/common/Policy.js @@ -58,7 +58,7 @@ var {Permissions, Policy, Sites} = (() => { try { url = new URL(site); } catch (e) { - siteKey = typeof site === "string" ? site : site.toString(); + siteKey = site ? (typeof site === "string" ? site : site.toString()) : ""; } } if (url) { |