diff options
| author | HJ <30-hj@users.noreply.git.pleroma.social> | 2019-10-29 07:41:29 +0000 |
|---|---|---|
| committer | HJ <30-hj@users.noreply.git.pleroma.social> | 2019-10-29 07:41:29 +0000 |
| commit | 21989c673ee3690f17ed3095e9fbc51501791c02 (patch) | |
| tree | de26f9a87bcaa6d8e576cf33165247f5c66b61af /src/components/video_attachment | |
| parent | 42f428d90e87315107dd20975548a5bd63dc2d53 (diff) | |
| parent | b66564a30dfadfdd2b216072931576c6c4dcbd61 (diff) | |
Merge branch 'settings-refactor' into 'develop'
Settings refactor
See merge request pleroma/pleroma-fe!960
Diffstat (limited to 'src/components/video_attachment')
| -rw-r--r-- | src/components/video_attachment/video_attachment.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/video_attachment/video_attachment.js b/src/components/video_attachment/video_attachment.js index 76b19a02..f0ca7e89 100644 --- a/src/components/video_attachment/video_attachment.js +++ b/src/components/video_attachment/video_attachment.js @@ -3,7 +3,7 @@ const VideoAttachment = { props: ['attachment', 'controls'], data () { return { - loopVideo: this.$store.state.config.loopVideo + loopVideo: this.$store.getters.mergedConfig.loopVideo } }, methods: { @@ -12,16 +12,16 @@ const VideoAttachment = { if (typeof target.webkitAudioDecodedByteCount !== 'undefined') { // non-zero if video has audio track if (target.webkitAudioDecodedByteCount > 0) { - this.loopVideo = this.loopVideo && !this.$store.state.config.loopVideoSilentOnly + this.loopVideo = this.loopVideo && !this.$store.getters.mergedConfig.loopVideoSilentOnly } } else if (typeof target.mozHasAudio !== 'undefined') { // true if video has audio track if (target.mozHasAudio) { - this.loopVideo = this.loopVideo && !this.$store.state.config.loopVideoSilentOnly + this.loopVideo = this.loopVideo && !this.$store.getters.mergedConfig.loopVideoSilentOnly } } else if (typeof target.audioTracks !== 'undefined') { if (target.audioTracks.length > 0) { - this.loopVideo = this.loopVideo && !this.$store.state.config.loopVideoSilentOnly + this.loopVideo = this.loopVideo && !this.$store.getters.mergedConfig.loopVideoSilentOnly } } } |
