Scaffold: Suppress ESLint JSON.parse() syntax errors

This commit is contained in:
Abe Jellinek 2025-02-28 15:16:26 -05:00
parent 1e08985dcd
commit c19f43ea46

View file

@ -2327,7 +2327,9 @@ var Scaffold = new function () {
return JSON.parse(lintOutput);
}
catch (e) {
Zotero.logError(e);
if (!(e instanceof SyntaxError)) {
Zotero.logError(e);
}
}
return [];
}