Default video inlining true and make the config stuff work

This commit is contained in:
shpuld 2019-01-31 21:01:10 +02:00
parent fbe7af3d56
commit bb2ff977a5
3 changed files with 5 additions and 4 deletions

View File

@ -86,6 +86,7 @@ const afterStoreSetup = ({ store, i18n }) => {
copyInstanceOption('subjectLineBehavior')
copyInstanceOption('alwaysShowSubjectInput')
copyInstanceOption('noAttachmentLinks')
copyInstanceOption('playVideosInline')
if ((config.chatDisabled)) {
store.dispatch('disableChat')

View File

@ -66,7 +66,9 @@ 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,
playVideosInline: typeof user.playVideosInline === 'undefined'
? instance.playVideosInline
: user.playVideosInline,
useContainFit: user.useContainFit
}
},

View File

@ -20,7 +20,5 @@
"webPushNotifications": false,
"noAttachmentLinks": false,
"nsfwCensorImage": "",
"useOneClickNsfw": true,
"playVideosInline": false,
"useContainFit": false
"playVideosInline": true,
}