fix MR comment

This commit is contained in:
Bilal
2020-07-17 08:25:46 +02:00
parent dcc1d098d2
commit a076edcf8b
2 changed files with 4 additions and 3 deletions

View File

@@ -21,7 +21,8 @@ $(document).on "turbolinks:load", ->
refreshBroadcastVideo: (data) ->
$("#broadcast_updates").html data.status_content
if data.streamer_status == 'recording' && data.status == 'active' && !window.recording_selected
stream_selected = $("#broadcast_video").attr('video-type') == 'stream';
if data.streamer_status == 'recording' && data.status == 'active' && stream_selected
$("#broadcast_video").html data.video_content
new (Clappr.Player)(
parentId: '#broadcast_video'