From 1b06d8c00f22780321eba52c5a82a8464ff06ff7 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Wed, 21 Aug 2024 05:16:15 +0530 Subject: [PATCH] feat: apply ad-blocker before running loop --- maxun-core/src/interpret.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/maxun-core/src/interpret.ts b/maxun-core/src/interpret.ts index ff0607f8..f314ae26 100644 --- a/maxun-core/src/interpret.ts +++ b/maxun-core/src/interpret.ts @@ -460,6 +460,8 @@ export default class Interpreter extends EventEmitter { } private async runLoop(p: Page, workflow: Workflow) { + // apply ad-blocker to the current page + await this.applyAdBlocker(p); const usedActions: string[] = []; let lastAction = null; let repeatCount = 0;