mirror of
https://github.com/microsoft/playwright.git
synced 2024-11-11 01:13:16 +03:00
fix(webkit): pass --headless only on Mac (#135)
This commit is contained in:
parent
fc5898892b
commit
3305363f2a
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user