Skip to content

Commit

Permalink
Update jump backward amount for share player
Browse files Browse the repository at this point in the history
  • Loading branch information
advplyr committed Nov 26, 2024
1 parent 2ba0f91 commit 718d8b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/pages/share/_slug.vue
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ export default {
jumpBackward() {
if (!this.localAudioPlayer || !this.hasLoaded) return
const currentTime = this.localAudioPlayer.getCurrentTime()
this.seek(Math.max(currentTime - 10, 0))
const jumpBackwardAmount = this.$store.getters['user/getUserSetting']('jumpBackwardAmount') || 10
this.seek(Math.max(currentTime - jumpBackwardAmount, 0))
},
setVolume(volume) {
if (!this.localAudioPlayer || !this.hasLoaded) return
Expand Down

0 comments on commit 718d8b5

Please sign in to comment.