docs: fix instructions for headful mode (#10063)

This commit is contained in:
Vlad Filippov 2023-04-24 02:29:28 -04:00 committed by GitHub
parent 513f658989
commit 23b6ae844e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -193,8 +193,8 @@ We recommend you try it out before the switch:
const browser = await puppeteer.launch({headless: 'new'});
```
To launch a full version of Chromium, set the
[`headless`](https://pptr.dev/api/puppeteer.browserlaunchargumentoptions) to `true`
To launch a "headful" version of Chromium, set the
[`headless`](https://pptr.dev/api/puppeteer.browserlaunchargumentoptions) to `false`
option when launching a browser:
```ts