feat: disable blocking in current page

This commit is contained in:
karishmas6
2024-07-20 06:09:57 +05:30
parent c58d816a59
commit 4a35dc7663

View File

@@ -95,6 +95,7 @@ export class RemoteBrowser {
const blocker = await PlaywrightBlocker.fromPrebuiltAdsAndTracking(fetch);
blocker.enableBlockingInPage(this.currentPage);
this.client = await this.currentPage.context().newCDPSession(this.currentPage);
await blocker.disableBlockingInPage(this.currentPage);
};
/**