client/home: fix featured WEBMs being unclickable

This commit is contained in:
rr- 2017-09-09 23:42:00 +02:00
parent 234afc8dfe
commit 795891767e

View file

@ -62,6 +62,11 @@ class HomeView {
this._postNotesOverlay = new PostNotesOverlayControl( this._postNotesOverlay = new PostNotesOverlayControl(
this._postContainerNode.querySelector('.post-overlay'), this._postContainerNode.querySelector('.post-overlay'),
postInfo.featuredPost); postInfo.featuredPost);
if (postInfo.featuredPost.type === 'video'
|| postInfo.featuredPost.type === 'flash') {
this._postContentControl.disableOverlay();
}
} }
} }