mobile web fixes

This commit is contained in:
zadam
2019-05-22 20:53:59 +02:00
parent 48b1aece4d
commit 79956b5676
7 changed files with 105 additions and 76 deletions
+3 -1
View File
@@ -28,7 +28,9 @@
}
async function validatorJavaScript(text, options) {
if (glob.getActiveNote() == null || glob.getActiveNote().mime === 'application/json') {
if (glob.isMobile()
|| glob.getActiveNote() == null
|| glob.getActiveNote().mime === 'application/json') {
// eslint doesn't seem to validate pure JSON well
return [];
}