From 18da61cf3602c0a4d8ae6929cea240e420fe7542 Mon Sep 17 00:00:00 2001 From: JxxIT <110342008+JxxIT@users.noreply.github.com> Date: Tue, 14 Jan 2025 14:52:19 +0100 Subject: [PATCH] Revert target function removal with browser --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3e172d6..dd1ca5c 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ import { RequestInterceptionManager } from 'puppeteer-intercept-and-modify-reque // assuming 'page' is your Puppeteer page object const client = await page.createCDPSession() // note: if you want to intercept requests on ALL tabs, instead use: -// const client = await browser.createCDPSession() +// const client = await browser.target().createCDPSession() const interceptManager = new RequestInterceptionManager(client) @@ -294,7 +294,7 @@ When creating the `RequestInterceptionManager` instance, you can pass in the `cl ```ts // intercept requests on ALL tabs, instead use: -const client = await browser.createCDPSession() +const client = await browser.target().createCDPSession() const interceptManager = new RequestInterceptionManager(client) // ...