diff --git a/content/static/script/play-resources.js b/content/static/script/play-resources.js index bafbdbdab..d83e5d81f 100644 --- a/content/static/script/play-resources.js +++ b/content/static/script/play-resources.js @@ -95,6 +95,7 @@ function addPlayer(container, res) { } $(document).ready(function() { + try { /* Iterate over all resources in HTML output */ $('.resource').each(function() { var resource = { href: $(this).find('a').attr('href'), @@ -126,6 +127,10 @@ $(document).ready(function() { var player = addButton(liEl, res); } }); + } catch (x) { + if (console && console.error) + console.error(x); + } }); function canPlay(type) {