File tree Expand file tree Collapse file tree
frontend/src/components/layout Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -300,11 +300,6 @@ export function Footer() {
300300 const latest = getMusicState ( )
301301 if ( ! latest || latest . muted ) return
302302 if ( ! latest . audio . paused || latest . audio . ended ) return
303- /* Restore position so client-side nav (home/about/team) doesn’t restart from 0 */
304- const persisted = readPersistedMusicState ( )
305- if ( persisted . currentTime > 0 && latest . audio . currentTime === 0 ) {
306- latest . audio . currentTime = persisted . currentTime
307- }
308303 latest . audio . play ( ) . then ( ( ) => {
309304 latest . hasStartedThisSession = true
310305 latest . wasPlayingBeforeAppRoute = false
@@ -368,10 +363,6 @@ export function Footer() {
368363 if ( ! state || state . muted ) return
369364 const { audio, hasStartedThisSession } = state
370365 if ( hasStartedThisSession && ! audio . ended && audio . paused ) {
371- const persisted = readPersistedMusicState ( )
372- if ( persisted . currentTime > 0 && audio . currentTime === 0 ) {
373- audio . currentTime = persisted . currentTime
374- }
375366 audio . play ( ) . catch ( ( ) => { } )
376367 }
377368 } , [ isAppRoute , pathname ] )
You can’t perform that action at this time.
0 commit comments