From 60668a7e18821968cbf348bd48b93f808586ebfb Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Thu, 24 Oct 2024 00:35:52 +0200 Subject: [PATCH] perf: :zap: reduce time on conflict loop detection --- src/store/player.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/player.ts b/src/store/player.ts index 300793c..45eec00 100644 --- a/src/store/player.ts +++ b/src/store/player.ts @@ -33,7 +33,7 @@ export const usePlayer = defineStore('player', { audio.ontimeupdate = () => (this.currentTime = audio.currentTime) audio.onvolumechange = () => (this.volume = audio.volume) - setInterval(this.loop, 4000) + setInterval(this.loop, 2000) }, loop() { this.playCount = 0