feat: apply ad blocker in page

This commit is contained in:
karishmas6
2024-08-21 05:14:58 +05:30
parent b8679b356c
commit cdb7ee0429

View File

@@ -89,6 +89,12 @@ export default class Interpreter extends EventEmitter {
})
}
private async applyAdBlocker(page: Page): Promise<void> {
if (this.blocker) {
await this.blocker.enableBlockingInPage(page);
}
}
/**
* Returns the context object from given Page and the current workflow.\
* \