docs: note headless flag defaults to true (#332)

* Replace headless: false with headless: true

* fix: suggestions to improve docs
This commit is contained in:
Daniela Borges Matos de Carvalho 2017-08-20 20:40:29 +01:00 committed by Eric Bidelman
parent 7796ca50ee
commit caa6f813a8

View File

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