Added sync check to song player.
This commit is contained in:
@@ -51,7 +51,7 @@ export default class PlayListSong {
|
||||
|
||||
this._audio.addEventListener("canplaythrough", () => {
|
||||
this.ready = true;
|
||||
if (onReady) {
|
||||
if (onReady && this.isAudioInstantiated()) {
|
||||
onReady(this._audio);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user