diff --git a/content/static/script/play-resources.js b/content/static/script/play-resources.js index 1fd0ecea8..cefc38bb4 100644 --- a/content/static/script/play-resources.js +++ b/content/static/script/play-resources.js @@ -107,11 +107,11 @@ $(document).ready(function() { res.preview = preview; /* Check playability */ - if (res.map(function(res) { - return res.type; + if (res.map(function(r) { + return r.type; }).some(canPlay)) { var liEl = $('
  • '); - alternativeEls.last().after(liEl); + ((alternativeEls.length < 1) ? $(this) : alternativeEls.last()).after(liEl); var player = addButton(liEl, res); } });