fix SVG single file import as image and not as file, closes #1114

pull/255/head
zadam 2020-06-24 21:47:50 +07:00
parent 89356918f1
commit 238df0fb40
1 changed files with 2 additions and 2 deletions

@ -24,7 +24,7 @@ async function importSingleFile(taskContext, file, parentNote) {
return await importCodeNote(taskContext, file, parentNote);
}
if (["image/jpeg", "image/gif", "image/png", "image/webp"].includes(mime)) {
if (mime.startsWith("image/")) {
return await importImage(file, parentNote, taskContext);
}
@ -166,4 +166,4 @@ function getFileNameWithoutExtension(filePath) {
module.exports = {
importSingleFile
};
};