fix: default to headful (#305)

See https://github.com/microsoft/playwright-mcp/issues/304

Regressed in
69703cc882.
This commit is contained in:
Simon Knott 2025-04-30 12:23:30 +02:00 committed by GitHub
parent 9efaea6a1c
commit 1c760b3826
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -89,7 +89,7 @@ export async function configFromCLIOptions(cliOptions: CLIOptions): Promise<Conf
const launchOptions: LaunchOptions = { const launchOptions: LaunchOptions = {
channel, channel,
executablePath: cliOptions.executablePath, executablePath: cliOptions.executablePath,
headless: cliOptions.headless, headless: cliOptions.headless ?? false,
}; };
if (browserName === 'chromium') if (browserName === 'chromium')