feat: add periodic saving action

This commit is contained in:
Michel Roux 2024-01-14 19:56:11 +01:00
parent 861ecf0db1
commit 950ae269c9
1 changed files with 6 additions and 0 deletions

View File

@ -103,3 +103,9 @@ export const player = {
},
},
}
setInterval(() => {
if (player.state.paused === false) {
store.dispatch('player/time')
}
}, 40000)