Skip to content

Commit b07703e

Browse files
committed
Revert to 9bcde64
Made-with: Cursor
1 parent 3d5fa94 commit b07703e

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

frontend/src/components/layout/Footer.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff 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])

0 commit comments

Comments
 (0)