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;
|
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)];
|
||||||
|
|
Loading…
Reference in a new issue