fix: consider DISPLAY only on linux (#175)
This commit is contained in:
parent
71e51ea42a
commit
de08c24b96
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ program
|
|||
}
|
||||
|
||||
const launchOptions: LaunchOptions = {
|
||||
headless: options.headless ?? !process.env.DISPLAY,
|
||||
headless: !!(options.headless ?? (os.platform() === 'linux' && !process.env.DISPLAY)),
|
||||
channel,
|
||||
executablePath: options.executablePath,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue