Add mp4 to attachments.
This commit is contained in:
parent
2917f4ab44
commit
15800bab57
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue