This commit is contained in:
Nicolas 2024-08-30 15:29:47 -03:00
commit 4f92bb4bf4

View File

@ -292,6 +292,8 @@ export function legacyScrapeOptions(x: ScrapeOptions): PageOptions {
}
export function legacyDocumentConverter(doc: any): Document {
if (doc === null || doc === undefined) return doc;
if (doc.metadata) {
if (doc.metadata.screenshot) {
doc.screenshot = doc.metadata.screenshot;