Add audio player

This commit is contained in:
dtluna 2016-11-22 21:45:18 +03:00
parent ea697a1bb1
commit 3210283ae2
2 changed files with 10 additions and 0 deletions

View file

@ -23,6 +23,10 @@ const Attachment = {
type = 'video'
};
if (this.attachment.mimetype.match(/ogg|audio/)) {
type = 'audio'
}
return type
}
},