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