mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-02 03:36:52 +00:00
fix(engine): capture tolerates a page that returns no list of late background images
This commit is contained in:
@@ -3317,7 +3317,8 @@ async function prepareFrameForCapture(
|
||||
const hasPendingComposite = await seekPageTimeline(page, quantizedTime, seekOptions);
|
||||
|
||||
session.captureStep = "decoding CSS background images";
|
||||
for (const url of await decodeDynamicCssBackgroundImages(page)) {
|
||||
// Mocked pages answer evaluate() with undefined, so tolerate a missing list.
|
||||
for (const url of (await decodeDynamicCssBackgroundImages(page)) ?? []) {
|
||||
appendBrowserDiagnostic(
|
||||
session,
|
||||
`[FrameCapture] background image still decoding after ${BACKGROUND_DECODE_TIMEOUT_MS}ms, captured without it: ${url}`,
|
||||
|
||||
Reference in New Issue
Block a user