0

Update index.ts

This commit is contained in:
rafaelsideguide 2024-04-29 17:58:47 -03:00
parent 71bdbf9f15
commit d3c36adaa7

View File

@ -64,6 +64,7 @@ export class WebScraperDataProvider {
useCaching: boolean = false, useCaching: boolean = false,
inProgress?: (progress: Progress) => void inProgress?: (progress: Progress) => void
): Promise<Document[]> { ): Promise<Document[]> {
if (this.urls[0].trim() === "") { if (this.urls[0].trim() === "") {
throw new Error("Url is required"); throw new Error("Url is required");
} }