Site parsing more resilient to bogus input.
This commit is contained in:
parent
746655c885
commit
b60cbbd49e
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue