From b7bb114bb0786fb1e22be5d92ddbdb6206fa7e1d Mon Sep 17 00:00:00 2001 From: John Juback Date: Mon, 8 Apr 2024 12:42:01 -0400 Subject: [PATCH] Undid previous change --- src/Album.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Album.js b/src/Album.js index 7de5627..3660f27 100644 --- a/src/Album.js +++ b/src/Album.js @@ -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, @@ -39,9 +39,6 @@ export const Album = (props) => { { src: makeUrl(props.Cover), sizes: '96x96' } ] }); - if (trackNo > 0) { - document.getElementById("audioElement").play(); - } }} />