Skip to content

Commit

Permalink
Apple
Browse files Browse the repository at this point in the history
  • Loading branch information
tteggel committed Dec 26, 2024
1 parent 610a189 commit b549fae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ptp.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ <h1>Pass the Parcel - Apple Music</h1>
appleSignInBtn.disabled = false;

// Update track info when player changes tracks
music.addEventListener('mediaItemDidChange', updateSongInfo);
music.addEventListener('nowPlayingItemDidChange', () => {updateSongInfo();});

//Also handle playback ended (just in case user’s snippet ends exactly at track end)
music.addEventListener('playbackStateDidChange', () => {
Expand Down

0 comments on commit b549fae

Please sign in to comment.