Skip to content

Commit

Permalink
fix: clearer jsdoc for behavior of headless when devtools is true (
Browse files Browse the repository at this point in the history
…#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.
  • Loading branch information
connorjclark committed Nov 16, 2021
1 parent 23ee295 commit 9f9b4ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/LaunchOptions.ts
Expand Up @@ -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;
Expand Down

0 comments on commit 9f9b4ed

Please sign in to comment.