mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-19 19:36:04 +00:00
fix(cli): replace deprecated page.waitForTimeout with setTimeout
page.waitForTimeout was removed in Puppeteer v22+.
This commit is contained in:
@@ -180,7 +180,7 @@ export function createStudioServer(options: StudioServerOptions): StudioServer {
|
||||
win.__timeline.seek(t);
|
||||
}
|
||||
}, opts.seekTime);
|
||||
await page.waitForTimeout(300);
|
||||
await new Promise((r) => setTimeout(r, 300));
|
||||
const screenshot = (await page.screenshot({ type: "jpeg", quality: 85 })) as Buffer;
|
||||
return screenshot;
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user