Skip to content

Commit

Permalink
readme usage update
Browse files Browse the repository at this point in the history
  • Loading branch information
mdervisaygan committed Aug 23, 2024
1 parent ec54418 commit 2a5fba3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ sudo apt-get install xvfb
### CommonJS

```js
const { connect } = require('puppeteer-real-browser');

const start = async () => {
const { connect } = require('puppeteer-real-browser');
const { page, browser } = await connect({})
}

Expand All @@ -77,7 +77,7 @@ const { connect } = require("puppeteer-real-browser")

async function test() {

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

headless: false,

Expand Down

0 comments on commit 2a5fba3

Please sign in to comment.