Skip to content

🎥 Make videos programmatically with React

this will always evaluate to true

Jonny Burgera384eafe31bb
diff --git a/packages/renderer/src/screenshot-task.ts b/packages/renderer/src/screenshot-task.ts
index 2e9507ca17..3bf438bd69 100644
--- a/packages/renderer/src/screenshot-task.ts
+++ b/packages/renderer/src/screenshot-task.ts
@@ -33,7 +33,7 @@ export const screenshotTask = async ({
});
stopPerfMeasure(perfTarget);
- const shouldSetDefaultBackground = omitBackground && format === 'png';
+ const shouldSetDefaultBackground = omitBackground;
if (shouldSetDefaultBackground)
await client.send('Emulation.setDefaultBackgroundColorOverride', {
color: {r: 0, g: 0, b: 0, a: 0},
@@ -51,7 +51,7 @@ export const screenshotTask = async ({
marginLeft: 0,
marginRight: 0,
scale: 1,
- printBackground: !omitBackground,
+ printBackground: true,
});
} else {
result = await client.send('Page.captureScreenshot', {