This commit is contained in:
Yanlong Wang 2024-07-06 01:00:37 +08:00
parent c69ec77c60
commit f6a183f87a
No known key found for this signature in database
GPG Key ID: C0A623C0BADF9F37

View File

@ -558,7 +558,7 @@ document.addEventListener('load', handlePageLoad);
screenshot = await page.screenshot();
lastHTML = snapshot.html;
}
if (snapshot) {
if (snapshot || screenshot) {
yield { ...snapshot, screenshot } as PageSnapshot;
}
if (error) {