diff --git a/src/js/scriptlet-filtering.js b/src/js/scriptlet-filtering.js index 43ddfc093..207af9fb5 100644 --- a/src/js/scriptlet-filtering.js +++ b/src/js/scriptlet-filtering.js @@ -192,10 +192,11 @@ const lookupScriptlet = function(rawToken, mainMap, isolatedMap) { } targetWorldMap.set(rawToken, [ 'try {', - '// >>>> scriptlet start', - content, - '// <<<< scriptlet end', + '// >>>> scriptlet start', + content, + '// <<<< scriptlet end', '} catch (e) {', + isDevBuild ? 'console.error(e);' : '', '}', ].join('\n')); };