Added sync check to song player.

This commit is contained in:
2022-04-17 01:30:21 -05:00
parent ab1871bb8e
commit 0543efccd8
2 changed files with 3 additions and 4 deletions

View File

@@ -51,7 +51,7 @@ export default class PlayListSong {
this._audio.addEventListener("canplaythrough", () => {
this.ready = true;
if (onReady) {
if (onReady && this.isAudioInstantiated()) {
onReady(this._audio);
}
});