diff options
| author | Roger Braun <roger@rogerbraun.net> | 2016-11-07 11:56:14 +0100 |
|---|---|---|
| committer | Roger Braun <roger@rogerbraun.net> | 2016-11-07 11:56:14 +0100 |
| commit | cf972e968cd1e059c4a7a05a9a3d42f3da05414b (patch) | |
| tree | 2d7d9ee5408397f1ac5d36fa98943158d5a105c4 /src/components/attachment/attachment.js | |
| parent | acc439f26684d3d188542e904190532ac781c936 (diff) | |
| parent | 83e7add2c7cd3d7b878c82ffb86e09479bff3500 (diff) | |
Merge branch 'master' of ssh.gitgud.io:lambadalambda/pleroma-fe
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 |
