client/settings: add ability to autoplay videos

This commit is contained in:
rr-
2016-11-11 23:14:51 +01:00
parent bf0342df71
commit 81080da06f
6 changed files with 27 additions and 11 deletions

View File

@ -102,7 +102,10 @@ class PostContentControl {
}
_reinstall() {
const newNode = this._template({post: this._post});
const newNode = this._template({
post: this._post,
autoplay: settings.get().autoplayVideos,
});
if (settings.get().transparencyGrid) {
newNode.classList.add('transparency-grid');
}