From 673c67652aecea130a241a8568d833c9a7237bdd Mon Sep 17 00:00:00 2001 From: Connor Clark Date: Thu, 4 Nov 2021 12:28:30 -0700 Subject: [PATCH] fix: clearer jsdoc for behavior of `headless` when `devtools` is true 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 b5c0b2833565d..81173b1970625 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;