Skip to content

Commit

Permalink
Revert target function removal with browser
Browse files Browse the repository at this point in the history
  • Loading branch information
JxxIT authored Jan 14, 2025
1 parent 3451707 commit 18da61c
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 @@ -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)

Expand Down Expand Up @@ -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)

// ...
Expand Down

0 comments on commit 18da61c

Please sign in to comment.