mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
Output scriplet errors to console in dev build
This commit is contained in:
parent
f8394ff2d5
commit
96d7b278b4
1 changed files with 4 additions and 3 deletions
|
@ -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'));
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue