Skip to content

Commit 1e0e981

Browse files
authored
Merge pull request #17 from imjohnbo/feat/svgs-as-images
Also treat svgs as images
2 parents 4cb4f0c + 7a3a410 commit 1e0e981

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: 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)