Skip to content

Commit

Permalink
Undid previous change
Browse files Browse the repository at this point in the history
  • Loading branch information
jjuback committed Apr 8, 2024
1 parent 018ac81 commit b7bb114
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Album.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const Album = (props) => {
props.goBack();
}
}}
onCanPlay={() => {
onPlay={() => {
navigator.mediaSession.metadata = new MediaMetadata({
title: props.Tracks[trackNo].Title,
artist: props.Artist,
Expand All @@ -39,9 +39,6 @@ export const Album = (props) => {
{ src: makeUrl(props.Cover), sizes: '96x96' }
]
});
if (trackNo > 0) {
document.getElementById("audioElement").play();
}
}}
/>
<ListGroup numbered>
Expand Down

0 comments on commit b7bb114

Please sign in to comment.