Update fireEngine.ts

This commit is contained in:
Nicolas 2024-09-21 21:10:05 -04:00
parent fbb5f23016
commit dfdbae74c6

View File

@ -194,7 +194,7 @@ export async function scrapWithFireEngine({
logParams.error_message = data.pageError ?? data.error;
return {
html: data.content ?? "",
screenshots: data.screenshots,
screenshots: data.screenshots ?? [data.screenshot] ?? [],
pageStatusCode: data.pageStatusCode,
pageError: data.pageError ?? data.error,
};