diff --git a/src/js/scriptlet-filtering.js b/src/js/scriptlet-filtering.js index 3ace313ff..0cd200f5b 100644 --- a/src/js/scriptlet-filtering.js +++ b/src/js/scriptlet-filtering.js @@ -65,6 +65,10 @@ content = patchScriptlet(content, args); if ( !content ) { return; } } + content = + 'try {\n' + + content + '\n' + + '} catch ( e ) { }'; scriptletCache.add(raw, content); } toInject.set(raw, content);