mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
tree fixes
This commit is contained in:
2
libraries/codemirror/addon/lint/eslint.js
vendored
2
libraries/codemirror/addon/lint/eslint.js
vendored
@@ -28,7 +28,7 @@
|
||||
}
|
||||
|
||||
async function validatorJavaScript(text, options) {
|
||||
if (glob.getActiveNote().mime === 'application/json') {
|
||||
if (glob.getActiveNote() == null || glob.getActiveNote().mime === 'application/json') {
|
||||
// eslint doesn't seem to validate pure JSON well
|
||||
return [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user