Media Overlay component

The Media Overlay component was preventing videos from sites like imgur from displaying on our forum. We fixed the issue by removing video from line 103, i.e. changing $('iframe, video, .lazyYT', $elem) to $('iframe, .lazyYT', $elem)

    function addOverlays($elem) {
      $('iframe, video, .lazyYT', $elem).wrap("<div class='media-overlay-eligable'></div>")

Now we have imgur videos working again, and the overlay still works with iFrames and lazyYTs

2 Likes