This commit is contained in:
dervperson 2025-01-31 20:53:00 -05:00
parent bd0f33bdd8
commit 8faa76b69e

View file

@ -34,14 +34,15 @@ async function urlCollector(url, path, file, useLimit) {
u.pathname = h; u.pathname = h;
h = u.toString(); h = u.toString();
} }
let h2; let h2, h3;
try { try {
h2 = new URL(h); h2 = new URL(h);
h3 = new URL(h2.origin);
} catch(err) { } catch(err) {
return; return;
} }
urls.push(h2.toString()) urls.push(h2.toString())
urls.push(new URL(h2.origin).toString()) urls.push(h3.toString())
}) })
return [...new Set(urls)]; return [...new Set(urls)];