mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 00:05:50 +01:00
Merge remote-tracking branch 'origin/stable' into syncification
# Conflicts: # package-lock.json # package.json # src/routes/custom.js # src/services/import/single.js
This commit is contained in:
@@ -24,7 +24,7 @@ function importSingleFile(taskContext, file, parentNote) {
|
||||
return importCodeNote(taskContext, file, parentNote);
|
||||
}
|
||||
|
||||
if (["image/jpeg", "image/gif", "image/png", "image/webp"].includes(mime)) {
|
||||
if (mime.startsWith("image/")) {
|
||||
return importImage(file, parentNote, taskContext);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user