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()`.
This commit is contained in:
Andrea Giammarchi 2018-10-27 03:38:00 +02:00 committed by Andrey Lushnikov
parent 81edbbb58e
commit 9800b2c3c2

View File

@ -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}`,