Skip to content

Commit

Permalink
refactor: simplify playback rate initialization in ft-shaka-video-pla…
Browse files Browse the repository at this point in the history
…yer and Watch components
  • Loading branch information
ikizey committed Dec 26, 2024
1 parent 4c8c245 commit 195b908
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export default defineComponent({
},
currentPlaybackRate: {
type: Number,
default: () => 1
default: 1
},
},
emits: [
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/views/Watch/Watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ export default defineComponent({
this.activeFormat = this.defaultVideoFormat

this.checkIfTimestamp()
this.currentPlaybackRate = parseFloat(this.$store.getters.getDefaultPlayback)
this.currentPlaybackRate = this.$store.getters.getDefaultPlayback
},
mounted: function () {
this.onMountedDependOnLocalStateLoading()
Expand Down

0 comments on commit 195b908

Please sign in to comment.