fix: 🐛 fix loop action
All checks were successful
repod / xml (push) Successful in 24s
repod / php (push) Successful in 1m6s
repod / nodejs (push) Successful in 1m8s
repod / release (push) Has been skipped

This commit is contained in:
Michel Roux 2024-08-15 21:18:20 +02:00
parent cf6bd440bf
commit 544c91edee

View File

@ -33,15 +33,15 @@ export default {
}, },
mounted() { mounted() {
this.init() this.init()
setInterval(this.loop, 40000)
setInterval(() => {
if (this.paused === false) {
this.time()
}
}, 40000)
}, },
methods: { methods: {
...mapActions(usePlayer, ['init', 'time']), ...mapActions(usePlayer, ['init', 'time']),
loop() {
if (this.paused === false) {
this.time()
}
},
}, },
} }
</script> </script>