mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 13:00:56 +03:00
modify puppeteer web crawl
This commit is contained in:
@@ -242,7 +242,7 @@ export async function crawl(baseURL: string, currentURL: string, pages: string[]
|
||||
const baseURLObj = new URL(baseURL)
|
||||
const currentURLObj = new URL(currentURL)
|
||||
|
||||
if (limit !== 0) if (pages.length === limit) return pages
|
||||
if (limit !== 0 && pages.length === limit) return pages
|
||||
|
||||
if (baseURLObj.hostname !== currentURLObj.hostname) return pages
|
||||
|
||||
|
||||
Reference in New Issue
Block a user