From f5e198a3573e21f161a4083773444e5f1458afc2 Mon Sep 17 00:00:00 2001 From: Eric Bidelman Date: Tue, 28 Aug 2018 14:18:41 -0700 Subject: [PATCH] docs(puppeteer): update API changes --- docs/puppeteer.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/puppeteer.md b/docs/puppeteer.md index a57f28dad1ca..95547832aff8 100644 --- a/docs/puppeteer.md +++ b/docs/puppeteer.md @@ -16,8 +16,11 @@ const {URL} = require('url'); (async() => { const url = 'https://www.chromestatus.com/features'; -// Use Puppeteer to launch Chrome. appMode launches headful chrome and doesn't size the viewport. -const browser = await puppeteer.launch({appMode: true}); +// Use Puppeteer to launch headful Chrome and don't use its default 800x600 viewport. +const browser = await puppeteer.launch({ + headless: false, + defaultViewport: null, +}); // Wait for Lighthouse to open url, then customize network conditions. // Note: this will re-establish these conditions when LH reloads the page. Think that's ok....