From 16c5c3523524a656dfd6b4212a4fa22cd343ef3b Mon Sep 17 00:00:00 2001 From: CanadaHonk Date: Tue, 11 Apr 2023 00:51:05 +0100 Subject: [PATCH] start: fix empty args breaking chrome args parsing --- src/launcher/start.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/launcher/start.js b/src/launcher/start.js index c98a0ad..abcd491 100644 --- a/src/launcher/start.js +++ b/src/launcher/start.js @@ -12,7 +12,7 @@ export default async (browserPath, args, transport, extra) => { const proc = spawn(browserPath, [ transport === 'stdio' ? `--remote-debugging-pipe` : `--remote-debugging-port=${port}`, - ...args + ...args.filter(x => x) ].filter(x => x), { detached: false, stdio: ['ignore', 'pipe', 'pipe', 'pipe', 'pipe']