chore: fix json detection issue when importing
This commit is contained in:
@@ -54,10 +54,6 @@ export class Importer {
|
|||||||
return 'evernote'
|
return 'evernote'
|
||||||
}
|
}
|
||||||
|
|
||||||
if (file.type === 'application/json' && this.superConverterService.isValidSuperString(content)) {
|
|
||||||
return 'super'
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const json = JSON.parse(content)
|
const json = JSON.parse(content)
|
||||||
|
|
||||||
@@ -76,6 +72,10 @@ export class Importer {
|
|||||||
/* empty */
|
/* empty */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (file.type === 'application/json' && this.superConverterService.isValidSuperString(content)) {
|
||||||
|
return 'super'
|
||||||
|
}
|
||||||
|
|
||||||
if (PlaintextConverter.isValidPlaintextFile(file)) {
|
if (PlaintextConverter.isValidPlaintextFile(file)) {
|
||||||
return 'plaintext'
|
return 'plaintext'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user