File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,8 @@ function updateUI() {
117
117
// Calling this function starts (or reloads) the app.
118
118
// If the store is changed, you can call this function again to reload the app.
119
119
export async function startApp ( ) {
120
+ console . log ( "Restarting the app..." ) ;
121
+
120
122
clearInterval ( updateLoop ) ;
121
123
122
124
removeLoadingSongPlaceholders ( playlistSongsContainer ) ;
Original file line number Diff line number Diff line change @@ -53,6 +53,8 @@ export class Player extends EventTarget {
53
53
}
54
54
55
55
load ( song ) {
56
+ console . log ( `Loading song: ${ song . id } ` ) ;
57
+
56
58
this . song = song ;
57
59
58
60
if ( ! song . type || song . type === 'url' ) {
@@ -68,6 +70,8 @@ export class Player extends EventTarget {
68
70
}
69
71
70
72
play ( song ) {
73
+ console . log ( `Playing song: ${ song . id } ` ) ;
74
+
71
75
let newSongWasLoaded = false ;
72
76
73
77
if ( ! songs . length ) {
You can’t perform that action at this time.
0 commit comments