Removed autoplay on page reload

This commit is contained in:
Eliot Berriot 2018-02-17 17:30:21 +01:00
parent d3ff0f0256
commit a2c42996a1
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
3 changed files with 6 additions and 19 deletions

View file

@ -37,7 +37,6 @@ export default new Vuex.Store({
key: 'player',
paths: [
'player.looping',
'player.playing',
'player.volume',
'player.duration',
'player.errored'],
@ -45,21 +44,6 @@ export default new Vuex.Store({
return mutation.type.startsWith('player/') && mutation.type !== 'player/currentTime'
}
}),
createPersistedState({
key: 'progress',
paths: ['player.currentTime'],
filter: (mutation) => {
let delay = 10
return mutation.type === 'player/currentTime' && parseInt(mutation.payload) % delay === 0
},
reducer: (state) => {
return {
player: {
currentTime: state.player.currentTime
}
}
}
}),
createPersistedState({
key: 'queue',
filter: (mutation) => {