fix: 📈 forgot time loop

This commit is contained in:
Michel Roux 2024-08-09 01:02:39 +02:00
parent 082161e177
commit 7e359bdf29
1 changed files with 6 additions and 0 deletions

View File

@ -106,3 +106,9 @@ audio.onratechange = () => (player.rate = audio.playbackRate)
audio.onseeked = () => (player.currentTime = audio.currentTime)
audio.ontimeupdate = () => (player.currentTime = audio.currentTime)
audio.onvolumechange = () => (player.volume = audio.volume)
setInterval(() => {
if (player.paused === false) {
player.time()
}
}, 40000)