diff --git a/README.md b/README.md index f4073cf..8343ac3 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ sudo apt-get install xvfb const { connect } = require('puppeteer-real-browser'); const start = async () => { - const { page, browser } = await connect({}) + const { page, browser } = await connect() } ``` @@ -66,7 +66,7 @@ const start = async () => { import { connect } from 'puppeteer-real-browser' -const { page, browser } = await connect({}) +const { page, browser } = await connect() ``` diff --git a/lib/cjs/index.js b/lib/cjs/index.js index ca63854..70f5254 100644 --- a/lib/cjs/index.js +++ b/lib/cjs/index.js @@ -12,7 +12,7 @@ async function connect({ disableXvfb = false, plugins = [], ignoreAllFlags = false, -}) { +} = {}) { const { launch, Launcher } = await import("chrome-launcher"); let xvfbsession = null; diff --git a/lib/esm/index.mjs b/lib/esm/index.mjs index 3d41620..fa6e3e0 100644 --- a/lib/esm/index.mjs +++ b/lib/esm/index.mjs @@ -14,7 +14,7 @@ export async function connect({ disableXvfb = false, plugins = [], ignoreAllFlags = false, -}) { +} = {}) { let xvfbsession = null; if (headless == "auto") headless = false;