Update index.ts
This commit is contained in:
parent
bf10e9d392
commit
5e8aa92788
@ -163,7 +163,7 @@ export class WebScraperDataProvider {
|
|||||||
inProgress?: (progress: Progress) => void
|
inProgress?: (progress: Progress) => void
|
||||||
): Promise<Document[]> {
|
): Promise<Document[]> {
|
||||||
|
|
||||||
const baseURLDepth = new URL(this.urls[0]).pathname.split('/').length - 2;
|
const baseURLDepth = new URL(this.urls[0]).pathname.split('/').length - 1;
|
||||||
const adjustedMaxDepth = this.maxCrawledDepth + baseURLDepth;
|
const adjustedMaxDepth = this.maxCrawledDepth + baseURLDepth;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user