Update index.mjs
This commit is contained in:
parent
fe59ffa0a3
commit
cf5bd65c90
1 changed files with 2 additions and 4 deletions
|
@ -134,7 +134,7 @@ async function siteCrawler(hostname) {
|
||||||
return webContents;
|
return webContents;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`Failed to crawl site ${hostname}:`, error);
|
console.error(`Failed to crawl site ${hostname}:`, error);
|
||||||
return [];
|
return webContents || [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -182,6 +182,4 @@ async function mainLoop() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//mainLoop()
|
mainLoop()
|
||||||
|
|
||||||
main()
|
|
||||||
|
|
Loading…
Reference in a new issue