Merge branch 'fix/default-inlined-videos' into 'develop'

Change video playing default without bothering making it an instance configurable

See merge request pleroma/pleroma-fe!505
This commit is contained in:
Shpuld Shpludson 2019-02-03 06:45:04 +00:00
commit f0721ed83b
7 changed files with 14 additions and 17 deletions

View file

@ -66,7 +66,7 @@ const settings = {
Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype, 'webkitAudioDecodedByteCount') ||
// Future spec, still not supported in Nightly 63 as of 08/2018
Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype, 'audioTracks'),
playVideosInline: user.playVideosInline,
playVideosInModal: user.playVideosInModal,
useContainFit: user.useContainFit
}
},
@ -164,8 +164,8 @@ const settings = {
this.$store.dispatch('setOption', { name: 'webPushNotifications', value })
if (value) this.$store.dispatch('registerPushNotifications')
},
playVideosInline (value) {
this.$store.dispatch('setOption', { name: 'playVideosInline', value })
playVideosInModal (value) {
this.$store.dispatch('setOption', { name: 'playVideosInModal', value })
},
useContainFit (value) {
this.$store.dispatch('setOption', { name: 'useContainFit', value })