fix: clearer jsdoc for behavior of headless when devtools is true (#7748)

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.
This commit is contained in:
Connor Clark 2021-11-16 14:31:24 -06:00 committed by GitHub
parent 23ee295f34
commit 9f9b4ed72a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;