feat: enable blocking in current page
This commit is contained in:
@@ -93,6 +93,7 @@ export class RemoteBrowser {
|
||||
const context = await this.browser.newContext();
|
||||
this.currentPage = await context.newPage();
|
||||
const blocker = await PlaywrightBlocker.fromPrebuiltAdsAndTracking(fetch);
|
||||
blocker.enableBlockingInPage(this.currentPage);
|
||||
this.client = await this.currentPage.context().newCDPSession(this.currentPage);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user