From 3305363f2a853709439e2aaaa79d6b3f3732020a Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Wed, 4 Dec 2019 17:08:35 -0700 Subject: [PATCH] fix(webkit): pass --headless only on Mac (#135) --- src/webkit/Launcher.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/webkit/Launcher.ts b/src/webkit/Launcher.ts index 5ab63916c8..3b0b7516db 100644 --- a/src/webkit/Launcher.ts +++ b/src/webkit/Launcher.ts @@ -77,7 +77,8 @@ export class Launcher { else stdio = ['ignore', 'ignore', 'ignore', 'pipe', 'pipe']; webkitArguments.push('--inspector-pipe'); - if (options.headless !== false) + // Headless options is only implemented on Mac at the moment. + if (process.platform === 'darwin' && options.headless !== false) webkitArguments.push('--headless'); const webkitProcess = childProcess.spawn( webkitExecutable,