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) {