Skip to content

Commit 0bef990

Browse files
committed
Allow xml files for attachments to support svg type
1 parent 22fe0c9 commit 0bef990

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/db/FSNoteDb.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@ class FSNoteDb implements NoteDb {
208208
for (const fileName of fileNames) {
209209
const filePathname = this.getAttachmentPathname(fileName)
210210
const mime = await readFileType(filePathname)
211-
if (!mime.startsWith('image/')) {
211+
212+
if (!mime.startsWith('image/') && !mime.startsWith('application/xml')) {
212213
continue
213214
}
214215

0 commit comments

Comments
 (0)