script/play-resources.js: suppress exceptions
avoid error warning popups in IE
This commit is contained in:
parent
9f63788098
commit
b19e96f976
|
@ -95,6 +95,7 @@ function addPlayer(container, res) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
try {
|
||||||
/* Iterate over all resources in HTML output */
|
/* Iterate over all resources in HTML output */
|
||||||
$('.resource').each(function() {
|
$('.resource').each(function() {
|
||||||
var resource = { href: $(this).find('a').attr('href'),
|
var resource = { href: $(this).find('a').attr('href'),
|
||||||
|
@ -126,6 +127,10 @@ $(document).ready(function() {
|
||||||
var player = addButton(liEl, res);
|
var player = addButton(liEl, res);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
} catch (x) {
|
||||||
|
if (console && console.error)
|
||||||
|
console.error(x);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
function canPlay(type) {
|
function canPlay(type) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user