Skip to content

Commit

Permalink
web: Use CustomEvent instead of Event for load events so MooTools works
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhjacobs committed Nov 28, 2023
1 parent 4805a07 commit 9e146c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/packages/core/src/ruffle-player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2356,9 +2356,9 @@ export class RufflePlayer extends HTMLElement {
// TODO: Switch this to ReadyState.Loading when we have streaming support.
this._readyState = ReadyState.Loaded;
this.hideSplashScreen();
this.dispatchEvent(new Event(RufflePlayer.LOADED_METADATA));
this.dispatchEvent(new CustomEvent(RufflePlayer.LOADED_METADATA));
// TODO: Move this to whatever function changes the ReadyState to Loaded when we have streaming support.
this.dispatchEvent(new Event(RufflePlayer.LOADED_DATA));
this.dispatchEvent(new CustomEvent(RufflePlayer.LOADED_DATA));
}
}

Expand Down

0 comments on commit 9e146c0

Please sign in to comment.