Update index.mjs

This commit is contained in:
The Ghost of FOSS' Future 2024-09-15 19:30:49 -05:00 committed by GitHub
parent fe59ffa0a3
commit cf5bd65c90
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()