Fire a player init event on initialization. (#2008)

This commit is contained in:
Kavin 2023-01-21 22:50:56 +00:00 committed by GitHub
parent 7d4e070f88
commit 869489b8da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -471,6 +471,9 @@ export default {
this.updateMarkers();
const event = new Event("playerInit");
window.dispatchEvent(event);
const player = this.$ui.getControls().getPlayer();
this.$player = player;