Skip to content

Commit

Permalink
docs(api.md): Fix missing await in extension example (#3447)
Browse files Browse the repository at this point in the history
The extensions example did not `await puppeteer.launch(...)` throwing errors right after awaiting `browser.targets()`.
  • Loading branch information
WebReflection authored and aslushnikov committed Oct 27, 2018
1 parent 81edbbb commit 9800b2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api.md
Expand Up @@ -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}`,
Expand Down

0 comments on commit 9800b2c

Please sign in to comment.