Skip to content

Commit

Permalink
make sure the media-item for flash is removed
Browse files Browse the repository at this point in the history
  • Loading branch information
iturgeon committed Jan 16, 2021
1 parent d70b33c commit 193cac6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/js/viewer/obo.view.js
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,8 @@ obo.view = function()
{
// Remove any No-Flash installed overlays
while($('#swf-alt-text').length > 0) {
$('#swf-alt-text').remove()
var $figure = $('#swf-alt-text').parents('figure.media-item')
if($figure.length) $figure.remove()
}

switch(section)
Expand Down

0 comments on commit 193cac6

Please sign in to comment.