From b9d1eb2a481e5598450a5895528041c209bedd2a Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Wed, 22 May 2024 13:23:36 -0300 Subject: [PATCH] new(all): Auto import for logo, colors and website content. --- packages/kb.gbapp/services/KBService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/kb.gbapp/services/KBService.ts b/packages/kb.gbapp/services/KBService.ts index f21c56c2..a98933bf 100644 --- a/packages/kb.gbapp/services/KBService.ts +++ b/packages/kb.gbapp/services/KBService.ts @@ -915,7 +915,7 @@ export class KBService implements IGBKBService { const isIgnored = websiteIgnoreUrls.split(";").some(ignoredUrl => p.href.includes(ignoredUrl)); return !isIgnored && currentDomain == new URL(p.href).hostname; - + } catch (err) { return false; } @@ -946,7 +946,7 @@ export class KBService implements IGBKBService { const childLinks = []; for (const link of filteredLinks) { - const links = await this.crawl(min, link, visited, depth + 1, maxDepth, page); + const links = await this.crawl(min, link, visited, depth + 1, maxDepth, page, websiteIgnoreUrls); if (links) { childLinks.push(...links); }