diff --git a/lib/Browser.js b/lib/Browser.js index d84b8bbe..d1f9911b 100644 --- a/lib/Browser.js +++ b/lib/Browser.js @@ -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; }