Skip to content
This repository has been archived by the owner on May 24, 2021. It is now read-only.

Commit

Permalink
fix(storage): Restores rate and volume from localstorage
Browse files Browse the repository at this point in the history
- fixes #467
  • Loading branch information
alexander-heimbuch committed Jan 4, 2018
1 parent c84cfbf commit e076681
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/store/effects/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,12 @@ const dispatcherEffects = [keyboardEffects]

let actionEffects = [
compose(effect(chapterEffects), hasProperty('chapters')),
effect(storageEffects),
effect(playerEffects),
effect(storageEffects),
effect(quantileEffects),
effect(volumeEffects),
effect(componentsEffects),
effect(urlEffects),
effect(playerEffects),
compose(effect(transcriptEffects), hasProperty('transcripts'))
]

Expand Down
1 change: 1 addition & 0 deletions src/store/effects/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export default mediaPlayer => (store, action) => {
player && player.actions.setPlaytime(millisecondsToSeconds(action.payload))
break
case 'SET_VOLUME':
console.log(player)
player && player.actions.setVolume(action.payload)
break
case 'SET_RATE':
Expand Down

0 comments on commit e076681

Please sign in to comment.