Skip to content

Commit a754b04

Browse files
committed
feat: also treat svgs as images
1 parent 4cb4f0c commit a754b04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/attachment.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default class Attachment {
4040
}
4141

4242
isImage(): boolean {
43-
return ['image/gif', 'image/png', 'image/jpg', 'image/jpeg'].indexOf(this.file.type) > -1
43+
return ['image/gif', 'image/png', 'image/jpg', 'image/jpeg', 'image/svg+xml'].indexOf(this.file.type) > -1
4444
}
4545

4646
isVideo(): boolean {

0 commit comments

Comments
 (0)