a
This commit is contained in:
parent
bd0f33bdd8
commit
8faa76b69e
1 changed files with 3 additions and 2 deletions
5
site.js
5
site.js
|
@ -34,14 +34,15 @@ async function urlCollector(url, path, file, useLimit) {
|
|||
u.pathname = h;
|
||||
h = u.toString();
|
||||
}
|
||||
let h2;
|
||||
let h2, h3;
|
||||
try {
|
||||
h2 = new URL(h);
|
||||
h3 = new URL(h2.origin);
|
||||
} catch(err) {
|
||||
return;
|
||||
}
|
||||
urls.push(h2.toString())
|
||||
urls.push(new URL(h2.origin).toString())
|
||||
urls.push(h3.toString())
|
||||
})
|
||||
|
||||
return [...new Set(urls)];
|
||||
|
|
Loading…
Reference in a new issue