Skip to content

Commit

Permalink
Merge pull request #160 from rtritto/add-default-options
Browse files Browse the repository at this point in the history
Add default to connect options parameter
  • Loading branch information
mdervisaygan authored Dec 27, 2024
2 parents f6d79dc + fd0164b commit b0f7061
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

```
Expand All @@ -66,7 +66,7 @@ const start = async () => {

import { connect } from 'puppeteer-real-browser'

const { page, browser } = await connect({})
const { page, browser } = await connect()

```

Expand Down
2 changes: 1 addition & 1 deletion lib/cjs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ async function connect({
disableXvfb = false,
plugins = [],
ignoreAllFlags = false,
}) {
} = {}) {
const { launch, Launcher } = await import("chrome-launcher");

let xvfbsession = null;
Expand Down
2 changes: 1 addition & 1 deletion lib/esm/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export async function connect({
disableXvfb = false,
plugins = [],
ignoreAllFlags = false,
}) {
} = {}) {
let xvfbsession = null;
if (headless == "auto") headless = false;

Expand Down

0 comments on commit b0f7061

Please sign in to comment.