diff --git a/site.js b/site.js index ea75d21..bd569fc 100644 --- a/site.js +++ b/site.js @@ -40,6 +40,7 @@ async function urlCollector(url, path, file, useLimit) { let h2; try { h2 = new URL(h); + if (h2.pathname == '' || !h2.pathname) h2.pathname = '/' } catch(err) { return; } @@ -50,8 +51,9 @@ async function urlCollector(url, path, file, useLimit) { let h3; try { h3 = new URL(new URL(url).origin); + h3.pathname = '/'; } catch(err) { - return; + return [...new Set(urls)]; } urls.push(h3.toString())