🎥 Make videos programmatically with React
simplify browserrunner
Jonny Burger0d94be000cba
diff --git a/packages/renderer/src/browser/BrowserRunner.ts b/packages/renderer/src/browser/BrowserRunner.tsindex 2380b3d508..c50964c4d8 100644--- a/packages/renderer/src/browser/BrowserRunner.ts+++ b/packages/renderer/src/browser/BrowserRunner.ts@@ -63,12 +63,9 @@ export class BrowserRunner {start(options: LaunchOptions): void {const {dumpio, env} = options;- let stdio: Array<'ignore' | 'pipe'>;- if (dumpio) {- stdio = ['pipe', 'pipe', 'pipe'];- } else {- stdio = ['pipe', 'ignore', 'pipe'];- }+ const stdio: ('ignore' | 'pipe')[] = dumpio+ ? ['ignore', 'pipe', 'pipe']+ : ['pipe', 'ignore', 'pipe'];assert(!this.proc, 'This process has previously been started.');this.proc = childProcess.spawn(