diff options
Diffstat (limited to 'src/components/attachment/attachment.js')
| -rw-r--r-- | src/components/attachment/attachment.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js index 85d924d0..99958589 100644 --- a/src/components/attachment/attachment.js +++ b/src/components/attachment/attachment.js @@ -11,16 +11,16 @@ const Attachment = { type () { let type = 'unknown' - if(this.attachment.mimetype.match(/text\/html/)) { - type = 'html'; + if (this.attachment.mimetype.match(/text\/html/)) { + type = 'html' } - if(this.attachment.mimetype.match(/image/)) { - type = 'image'; + if (this.attachment.mimetype.match(/image/)) { + type = 'image' } - if(this.attachment.mimetype.match(/video\/(webm|mp4)/)) { - type = 'video'; + if (this.attachment.mimetype.match(/video\/(webm|mp4)/)) { + type = 'video' }; return type |
