gah
This commit is contained in:
parent
a9c7118b43
commit
1b87b278de
1 changed files with 3 additions and 5 deletions
8
site.js
8
site.js
|
@ -40,7 +40,6 @@ async function urlCollector(url, path, file, useLimit) {
|
|||
let h2;
|
||||
try {
|
||||
h2 = new URL(h);
|
||||
if (h2.pathname == '' || !h2.pathname) h2.pathname = '/'
|
||||
} catch(err) {
|
||||
return;
|
||||
}
|
||||
|
@ -51,7 +50,6 @@ async function urlCollector(url, path, file, useLimit) {
|
|||
let h3;
|
||||
try {
|
||||
h3 = new URL(new URL(url).origin);
|
||||
h3.pathname = '/';
|
||||
} catch(err) {
|
||||
return [...new Set(urls)];
|
||||
}
|
||||
|
@ -204,10 +202,10 @@ async function siteCollector(user, path, site, useLimit) {
|
|||
if (!following || !followers) continue;
|
||||
|
||||
try {
|
||||
let o = new URL(uf);
|
||||
let o = new URL(new URL(uf).origin);
|
||||
|
||||
if (followers.indexOf(o.origin) == -1) {
|
||||
followers.push(o.origin)
|
||||
if (followers.indexOf(o) == -1) {
|
||||
followers.push(o)
|
||||
}
|
||||
} catch (err) {
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue