From cf5bd65c90f121488723d68c8ec77c3d25f24312 Mon Sep 17 00:00:00 2001 From: The Ghost of FOSS' Future <163201376+sneedgroup-holder@users.noreply.github.com> Date: Sun, 15 Sep 2024 19:30:49 -0500 Subject: [PATCH] Update index.mjs --- index.mjs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/index.mjs b/index.mjs index 306f934..78f77c1 100644 --- a/index.mjs +++ b/index.mjs @@ -134,7 +134,7 @@ async function siteCrawler(hostname) { return webContents; } catch (error) { console.error(`Failed to crawl site ${hostname}:`, error); - return []; + return webContents || []; } } @@ -182,6 +182,4 @@ async function mainLoop() { } } -//mainLoop() - -main() +mainLoop()