From 65a834523012dec294ca6d4ffb45e1794693bec1 Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Thu, 23 May 2024 09:42:46 +0200 Subject: [PATCH] fix: incorrect event names in`waitForNetworkIdle` --- src/page.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/page.ts b/src/page.ts index 1533ed2..8e661cd 100644 --- a/src/page.ts +++ b/src/page.ts @@ -634,15 +634,15 @@ export class Page extends EventTarget { new Promise((resolve) => { const timeoutDone = () => { this.#celestial.removeEventListener( - "Network_requestWillBeSent", + "Network.requestWillBeSent", requestStarted, ); this.#celestial.removeEventListener( - "Network_loadingFailed", + "Network.loadingFailed", requestFinished, ); this.#celestial.removeEventListener( - "Network_loadingFinished", + "Network.loadingFinished", requestFinished, ); resolve();