Skip to content

Commit

Permalink
Merge pull request #62 from marvinhagemeister/fix-event-names
Browse files Browse the repository at this point in the history
fix: incorrect event names in `waitForNetworkIdle`
  • Loading branch information
lino-levan authored May 23, 2024
2 parents 543db91 + 65a8345 commit 4985628
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 @@ -638,15 +638,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 4985628

Please sign in to comment.