Skip to content

Commit

Permalink
fix: incorrect event names inwaitForNetworkIdle
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinhagemeister committed May 23, 2024
1 parent bb70d76 commit 65a8345
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -634,15 +634,15 @@ export class Page extends EventTarget {
new Promise<void>((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();
Expand Down

0 comments on commit 65a8345

Please sign in to comment.