nomagick commited on
Commit
f6a183f
·
unverified ·
1 Parent(s): c69ec77
backend/functions/src/services/puppeteer.ts CHANGED
@@ -558,7 +558,7 @@ document.addEventListener('load', handlePageLoad);
558
  screenshot = await page.screenshot();
559
  lastHTML = snapshot.html;
560
  }
561
- if (snapshot) {
562
  yield { ...snapshot, screenshot } as PageSnapshot;
563
  }
564
  if (error) {
 
558
  screenshot = await page.screenshot();
559
  lastHTML = snapshot.html;
560
  }
561
+ if (snapshot || screenshot) {
562
  yield { ...snapshot, screenshot } as PageSnapshot;
563
  }
564
  if (error) {