Add audio player
This commit is contained in:
parent
ea697a1bb1
commit
3210283ae2
2 changed files with 10 additions and 0 deletions
|
@ -23,6 +23,10 @@ const Attachment = {
|
|||
type = 'video'
|
||||
};
|
||||
|
||||
if (this.attachment.mimetype.match(/ogg|audio/)) {
|
||||
type = 'audio'
|
||||
}
|
||||
|
||||
return type
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue