Default video inlining true and make the config stuff work
This commit is contained in:
parent
fbe7af3d56
commit
bb2ff977a5
|
@ -86,6 +86,7 @@ const afterStoreSetup = ({ store, i18n }) => {
|
||||||
copyInstanceOption('subjectLineBehavior')
|
copyInstanceOption('subjectLineBehavior')
|
||||||
copyInstanceOption('alwaysShowSubjectInput')
|
copyInstanceOption('alwaysShowSubjectInput')
|
||||||
copyInstanceOption('noAttachmentLinks')
|
copyInstanceOption('noAttachmentLinks')
|
||||||
|
copyInstanceOption('playVideosInline')
|
||||||
|
|
||||||
if ((config.chatDisabled)) {
|
if ((config.chatDisabled)) {
|
||||||
store.dispatch('disableChat')
|
store.dispatch('disableChat')
|
||||||
|
|
|
@ -66,7 +66,9 @@ const settings = {
|
||||||
Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype, 'webkitAudioDecodedByteCount') ||
|
Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype, 'webkitAudioDecodedByteCount') ||
|
||||||
// Future spec, still not supported in Nightly 63 as of 08/2018
|
// Future spec, still not supported in Nightly 63 as of 08/2018
|
||||||
Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype, 'audioTracks'),
|
Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype, 'audioTracks'),
|
||||||
playVideosInline: user.playVideosInline,
|
playVideosInline: typeof user.playVideosInline === 'undefined'
|
||||||
|
? instance.playVideosInline
|
||||||
|
: user.playVideosInline,
|
||||||
useContainFit: user.useContainFit
|
useContainFit: user.useContainFit
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -20,7 +20,5 @@
|
||||||
"webPushNotifications": false,
|
"webPushNotifications": false,
|
||||||
"noAttachmentLinks": false,
|
"noAttachmentLinks": false,
|
||||||
"nsfwCensorImage": "",
|
"nsfwCensorImage": "",
|
||||||
"useOneClickNsfw": true,
|
"playVideosInline": true,
|
||||||
"playVideosInline": false,
|
|
||||||
"useContainFit": false
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue