Skip to content

Commit

Permalink
Adding a few debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
captainbrosset committed Mar 21, 2024
1 parent 577d644 commit 7ef7cee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pwamp/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ function updateUI() {
// Calling this function starts (or reloads) the app.
// If the store is changed, you can call this function again to reload the app.
export async function startApp() {
console.log("Restarting the app...");

clearInterval(updateLoop);

removeLoadingSongPlaceholders(playlistSongsContainer);
Expand Down
4 changes: 4 additions & 0 deletions pwamp/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ export class Player extends EventTarget {
}

load(song) {
console.log(`Loading song: ${song.id}`);

this.song = song;

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

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

let newSongWasLoaded = false;

if (!songs.length) {
Expand Down

0 comments on commit 7ef7cee

Please sign in to comment.