From 9800b2c3c2d31379badb9d4dab1cc8fc95aee48a Mon Sep 17 00:00:00 2001 From: Andrea Giammarchi Date: Sat, 27 Oct 2018 03:38:00 +0200 Subject: [PATCH] docs(api.md): Fix missing `await` in extension example (#3447) The extensions example did not `await puppeteer.launch(...)` throwing errors right after awaiting `browser.targets()`. --- docs/api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api.md b/docs/api.md index 5a1d1358cda..9fed194d8c7 100644 --- a/docs/api.md +++ b/docs/api.md @@ -404,7 +404,7 @@ const puppeteer = require('puppeteer'); (async () => { const pathToExtension = require('path').join(__dirname, 'my-extension'); - const browser = puppeteer.launch({ + const browser = await puppeteer.launch({ headless: false, args: [ `--disable-extensions-except=${pathToExtension}`,