perf: reduce time on conflict loop detection
All checks were successful
repod / xml (push) Successful in 9s
repod / php (push) Successful in 36s
repod / nodejs (push) Successful in 1m11s
repod / release (push) Has been skipped

This commit is contained in:
Michel Roux 2024-10-24 00:35:52 +02:00
parent 4f412c23c0
commit 5b0b1dcc81

View File

@ -33,7 +33,7 @@ export const usePlayer = defineStore('player', {
audio.ontimeupdate = () => (this.currentTime = audio.currentTime) audio.ontimeupdate = () => (this.currentTime = audio.currentTime)
audio.onvolumechange = () => (this.volume = audio.volume) audio.onvolumechange = () => (this.volume = audio.volume)
setInterval(this.loop, 4000) setInterval(this.loop, 1000)
}, },
loop() { loop() {
this.playCount = 0 this.playCount = 0