diff options
| author | Roger Braun <roger@rogerbraun.net> | 2016-11-06 17:43:31 +0100 |
|---|---|---|
| committer | Roger Braun <roger@rogerbraun.net> | 2016-11-06 17:43:31 +0100 |
| commit | 15800bab576b1a1e1ef5eab61b6d0d16ea6dfd5e (patch) | |
| tree | f1789855427810a9494ad3198730a926edfab53b /src/components/attachment/attachment.js | |
| parent | 2917f4ab44f36aaf765f5b1b54b67551b600af77 (diff) | |
Add mp4 to attachments.
Diffstat (limited to 'src/components/attachment/attachment.js')
| -rw-r--r-- | src/components/attachment/attachment.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js index 161c6b2b..85d924d0 100644 --- a/src/components/attachment/attachment.js +++ b/src/components/attachment/attachment.js @@ -19,8 +19,8 @@ const Attachment = { type = 'image'; } - if(this.attachment.mimetype.match(/video\/webm/)) { - type = 'webm'; + if(this.attachment.mimetype.match(/video\/(webm|mp4)/)) { + type = 'video'; }; return type |
