From 2a5fba37a85c15625fb3c8d1f7cf8dcb109b9492 Mon Sep 17 00:00:00 2001 From: zfcsoftware Date: Fri, 23 Aug 2024 06:05:41 +0300 Subject: [PATCH] readme usage update --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cbe0f7a..3384c2d 100644 --- a/README.md +++ b/README.md @@ -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({}) } @@ -77,7 +77,7 @@ const { connect } = require("puppeteer-real-browser") async function test() { - const { browser, page } = connect({ + const { browser, page } = await connect({ headless: false,