Skip to content

Commit 0ed086e

Browse files
chore: remove code around Audits setup (#1893)
This was left out, but is handled by Puppeteer.
1 parent 0a6aaa5 commit 0ed086e

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

src/PageCollector.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -288,11 +288,6 @@ class PageEventSubscriber {
288288
this.#page.on('framenavigated', this.#onFrameNavigated);
289289
this.#page.on('issue', this.#onIssueAdded);
290290
this.#session.on('Runtime.exceptionThrown', this.#onExceptionThrown);
291-
try {
292-
await this.#session.send('Audits.enable');
293-
} catch (error) {
294-
logger('Error subscribing to issues', error);
295-
}
296291
}
297292

298293
unsubscribe() {
@@ -307,9 +302,6 @@ class PageEventSubscriber {
307302
this.#onAggregatedIssue,
308303
);
309304
}
310-
void this.#session.send('Audits.disable').catch(() => {
311-
// might fail.
312-
});
313305
}
314306

315307
#onAggregatedIssue = (

0 commit comments

Comments
 (0)