Site parsing more resilient to bogus input.

This commit is contained in:
hackademix 2018-09-08 14:37:33 +02:00
parent 746655c885
commit b60cbbd49e
1 changed files with 1 additions and 1 deletions

View File

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