From caa6f813a8c26d20828dbefd4928043151229e70 Mon Sep 17 00:00:00 2001 From: Daniela Borges Matos de Carvalho Date: Sun, 20 Aug 2017 20:40:29 +0100 Subject: [PATCH] docs: note headless flag defaults to true (#332) * Replace headless: false with headless: true * fix: suggestions to improve docs --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 84631904..51c8e8db 100644 --- a/README.md +++ b/README.md @@ -74,10 +74,10 @@ See [`Page.pdf()`](https://github.com/GoogleChrome/puppeteer/blob/master/docs/ap **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 -const browser = await puppeteer.launch({headless: false}); +const browser = await puppeteer.launch({headless: false}); // default is true ``` **2. Runs a bundled version of Chromium**