Skip to content

🎥 Make videos programmatically with React

Update open-browser.ts

Jonny Burger338e48ddf1d2
diff --git a/packages/renderer/src/open-browser.ts b/packages/renderer/src/open-browser.ts
index fa52ad7d6e..e0cc6f914c 100644
--- a/packages/renderer/src/open-browser.ts
+++ b/packages/renderer/src/open-browser.ts
@@ -68,7 +68,6 @@ export const openBrowser = async (
executablePath,
product: browser,
dumpio: options?.shouldDumpIo ?? false,
- headless: false,
ignoreDefaultArgs: true,
args: [
'about:blank',
@@ -107,7 +106,7 @@ export const openBrowser = async (
'--enable-blink-features=IdleDetection',
'--export-tagged-pdf',
'--intensive-wake-up-throttling-policy=0',
- '--headless',
+ options?.chromiumOptions?.headless ?? true ? '--headless' : null,
'--no-sandbox',
'--disable-setuid-sandbox',
'--disable-dev-shm-usage',