X-Git-Url: https://juplo.de/gitweb/?p=openx;a=blobdiff_plain;f=jquery.openx.js;h=d02b228bc2726ce320c391770ea851cd8a0bfefb;hp=4b978b3b23f24ee58db5284becb339e96cc76e56;hb=HEAD;hpb=0683a1ea9fb5787922c3dbc590200681f6e91d94 diff --git a/jquery.openx.js b/jquery.openx.js index 4b978b3..d02b228 100644 --- a/jquery.openx.js +++ b/jquery.openx.js @@ -417,7 +417,13 @@ /** Remove leading HTML-comments, because IE will stumble otherwise */ inline = inline.slice(result[0].length,inline.length); } - $.globalEval(inline); + try { + $.globalEval(inline); + } + catch(e) { + if (console.error) + console.error('Error while executing inline script-code: ' + e.message); + } insert_output(); // << The executed inline-code might have called document.write()! } else {