start: fix empty args breaking chrome args parsing

This commit is contained in:
CanadaHonk 2023-04-11 00:51:05 +01:00
parent 744af9ca18
commit 16c5c35235

View File

@ -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']