mirror of https://github.com/gorhill/uBlock.git
Output scriplet errors to console in dev build
This commit is contained in:
parent
f8394ff2d5
commit
96d7b278b4
|
@ -192,10 +192,11 @@ const lookupScriptlet = function(rawToken, mainMap, isolatedMap) {
|
||||||
}
|
}
|
||||||
targetWorldMap.set(rawToken, [
|
targetWorldMap.set(rawToken, [
|
||||||
'try {',
|
'try {',
|
||||||
'// >>>> scriptlet start',
|
'// >>>> scriptlet start',
|
||||||
content,
|
content,
|
||||||
'// <<<< scriptlet end',
|
'// <<<< scriptlet end',
|
||||||
'} catch (e) {',
|
'} catch (e) {',
|
||||||
|
isDevBuild ? 'console.error(e);' : '',
|
||||||
'}',
|
'}',
|
||||||
].join('\n'));
|
].join('\n'));
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue