chore(Browser): fix jsdoc in Browser.create method (#1403)
This commit is contained in:
parent
cc0c461ea8
commit
a350e89381
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user