From 9508c706631afda813bb3210ec23abdedcbc4828 Mon Sep 17 00:00:00 2001 From: Nikolay Vitkov Date: Fri, 17 Apr 2026 16:12:25 +0200 Subject: [PATCH] chore: remove code around Audits setup --- src/PageCollector.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/PageCollector.ts b/src/PageCollector.ts index 92f461201..ce2241668 100644 --- a/src/PageCollector.ts +++ b/src/PageCollector.ts @@ -288,11 +288,6 @@ class PageEventSubscriber { this.#page.on('framenavigated', this.#onFrameNavigated); this.#page.on('issue', this.#onIssueAdded); this.#session.on('Runtime.exceptionThrown', this.#onExceptionThrown); - try { - await this.#session.send('Audits.enable'); - } catch (error) { - logger('Error subscribing to issues', error); - } } unsubscribe() { @@ -307,9 +302,6 @@ class PageEventSubscriber { this.#onAggregatedIssue, ); } - void this.#session.send('Audits.disable').catch(() => { - // might fail. - }); } #onAggregatedIssue = (