From 9f9b4ed72ab0bb43d002a0024122d6f5eab231aa Mon Sep 17 00:00:00 2001 From: Connor Clark Date: Tue, 16 Nov 2021 14:31:24 -0600 Subject: [PATCH] fix: clearer jsdoc for behavior of `headless` when `devtools` is true (#7748) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The existing comment suggests that only the default changes–however, even if you set `devtools: false` and `headless: true`, Puppeteer will still open with headful. --- src/node/LaunchOptions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/LaunchOptions.ts b/src/node/LaunchOptions.ts index b5c0b283..81173b19 100644 --- a/src/node/LaunchOptions.ts +++ b/src/node/LaunchOptions.ts @@ -36,7 +36,7 @@ export interface BrowserLaunchArgumentOptions { userDataDir?: string; /** * Whether to auto-open a DevTools panel for each tab. If this is set to - * `true`, then `headless` will be set to `false` automatically. + * `true`, then `headless` will be forced to `false`. * @defaultValue `false` */ devtools?: boolean;