Skip to content

Commit 7ef7cee

Browse files
Adding a few debug logs
1 parent 577d644 commit 7ef7cee

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

pwamp/app.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ function updateUI() {
117117
// Calling this function starts (or reloads) the app.
118118
// If the store is changed, you can call this function again to reload the app.
119119
export async function startApp() {
120+
console.log("Restarting the app...");
121+
120122
clearInterval(updateLoop);
121123

122124
removeLoadingSongPlaceholders(playlistSongsContainer);

pwamp/player.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ export class Player extends EventTarget {
5353
}
5454

5555
load(song) {
56+
console.log(`Loading song: ${song.id}`);
57+
5658
this.song = song;
5759

5860
if (!song.type || song.type === 'url') {
@@ -68,6 +70,8 @@ export class Player extends EventTarget {
6870
}
6971

7072
play(song) {
73+
console.log(`Playing song: ${song.id}`);
74+
7175
let newSongWasLoaded = false;
7276

7377
if (!songs.length) {

0 commit comments

Comments
 (0)