Skip to content

Chrome DevTools for coding agents

chore: remove code around Audits setup (#1893)

Nikolay Vitkov0ed086ec197c
diff --git a/src/PageCollector.ts b/src/PageCollector.ts
index 92f46120..ce224166 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 = (