Skip to content

Commit

Permalink
Fixed missing song bug
Browse files Browse the repository at this point in the history
  • Loading branch information
captainbrosset committed Mar 21, 2024
1 parent 7ef7cee commit f626956
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pwamp/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ export class Player extends EventTarget {
}

play(song) {
console.log(`Playing song: ${song.id}`);

let newSongWasLoaded = false;

if (!songs.length) {
Expand Down Expand Up @@ -100,6 +98,8 @@ export class Player extends EventTarget {
if (!newSongWasLoaded) {
this.dispatchEvent(new Event('canplay'));
}

console.log(`Playing song: ${this.song.id}`);
}

playPrevious() {
Expand Down

0 comments on commit f626956

Please sign in to comment.