From f62695614747ecaf338029a27f3e6258534e6071 Mon Sep 17 00:00:00 2001 From: Patrick Brosset Date: Thu, 21 Mar 2024 10:34:54 +0100 Subject: [PATCH] Fixed missing song bug --- pwamp/player.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pwamp/player.js b/pwamp/player.js index a32460d..06fe27b 100644 --- a/pwamp/player.js +++ b/pwamp/player.js @@ -70,8 +70,6 @@ export class Player extends EventTarget { } play(song) { - console.log(`Playing song: ${song.id}`); - let newSongWasLoaded = false; if (!songs.length) { @@ -100,6 +98,8 @@ export class Player extends EventTarget { if (!newSongWasLoaded) { this.dispatchEvent(new Event('canplay')); } + + console.log(`Playing song: ${this.song.id}`); } playPrevious() {