mirror of
https://github.com/microsoft/playwright-mcp.git
synced 2025-07-27 00:52:27 +08:00
chore: default to headless when DISPLAY is missing (#172)
Fixes https://github.com/microsoft/playwright-mcp/issues/165
This commit is contained in:
parent
606b898a71
commit
0c5a104e0f
@ -74,7 +74,7 @@ program
|
|||||||
}
|
}
|
||||||
|
|
||||||
const launchOptions: LaunchOptions = {
|
const launchOptions: LaunchOptions = {
|
||||||
headless: !!options.headless,
|
headless: options.headless ?? !process.env.DISPLAY,
|
||||||
channel,
|
channel,
|
||||||
executablePath: options.executablePath,
|
executablePath: options.executablePath,
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user