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:
parent
81edbbb58e
commit
9800b2c3c2
@ -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}`,
|
||||
|
Loading…
Reference in New Issue
Block a user