chore: default to headless when DISPLAY is missing (#172)

Fixes https://github.com/microsoft/playwright-mcp/issues/165
This commit is contained in:
Pavel Feldman 2025-04-14 16:47:32 -07:00 committed by GitHub
parent 606b898a71
commit 0c5a104e0f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -74,7 +74,7 @@ program
}
const launchOptions: LaunchOptions = {
headless: !!options.headless,
headless: options.headless ?? !process.env.DISPLAY,
channel,
executablePath: options.executablePath,
};