mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 08:15:52 +01:00
basic webp support
This commit is contained in:
@@ -100,7 +100,7 @@ async function importSingleFile(importContext, file, parentNote) {
|
||||
return await importCodeNote(importContext, file, parentNote);
|
||||
}
|
||||
|
||||
if (["image/jpeg", "image/gif", "image/png"].includes(mime)) {
|
||||
if (["image/jpeg", "image/gif", "image/png", "image/webp"].includes(mime)) {
|
||||
return await importImage(file, parentNote, importContext);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user