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 {
|
try {
|
||||||
url = new URL(site);
|
url = new URL(site);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
siteKey = typeof site === "string" ? site : site.toString();
|
siteKey = site ? (typeof site === "string" ? site : site.toString()) : "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (url) {
|
if (url) {
|
||||||
|
|
Loading…
Reference in New Issue