mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
docs: note headless flag defaults to true (#332)
* Replace headless: false with headless: true * fix: suggestions to improve docs
This commit is contained in:
parent
7796ca50ee
commit
caa6f813a8
@ -74,10 +74,10 @@ See [`Page.pdf()`](https://github.com/GoogleChrome/puppeteer/blob/master/docs/ap
|
|||||||
|
|
||||||
**1. Uses Headless mode**
|
**1. Uses Headless mode**
|
||||||
|
|
||||||
Puppeteer launches Chromium in [headless mode](https://developers.google.com/web/updates/2017/04/headless-chrome). To launch a full version of Chromium, set the ['headless' option](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#puppeteerlaunchoptions) when creating a browser:
|
Puppeteer launches Chromium in [headless mode](https://developers.google.com/web/updates/2017/04/headless-chrome). To launch a full version of Chromium, set the ['headless' option](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#puppeteerlaunchoptions) when launching a browser:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const browser = await puppeteer.launch({headless: false});
|
const browser = await puppeteer.launch({headless: false}); // default is true
|
||||||
```
|
```
|
||||||
|
|
||||||
**2. Runs a bundled version of Chromium**
|
**2. Runs a bundled version of Chromium**
|
||||||
|
Loading…
Reference in New Issue
Block a user