chore(Browser): fix jsdoc in Browser.create method (#1403)

This commit is contained in:
Octavian Cioaca 2017-11-17 01:28:52 +01:00 committed by Andrey Lushnikov
parent cc0c461ea8
commit a350e89381

View File

@ -43,11 +43,11 @@ class Browser extends EventEmitter {
/**
* @param {!Puppeteer.Connection} connection
* @param {boolean} ignoreHTTPSErrors
* @param {!Object=} options
* @param {function()=} closeCallback
*/
static async create(connection, ignoreHTTPSErrors, closeCallback) {
const browser = new Browser(connection, ignoreHTTPSErrors, closeCallback);
static async create(connection, options, closeCallback) {
const browser = new Browser(connection, options, closeCallback);
await connection.send('Target.setDiscoverTargets', {discover: true});
return browser;
}