Linting fixes.
This commit is contained in:
parent
d65112a625
commit
93eb6671c6
5 changed files with 13 additions and 14 deletions
|
@ -11,16 +11,16 @@ const Attachment = {
|
|||
type () {
|
||||
let type = 'unknown'
|
||||
|
||||
if(this.attachment.mimetype.match(/text\/html/)) {
|
||||
type = 'html';
|
||||
if (this.attachment.mimetype.match(/text\/html/)) {
|
||||
type = 'html'
|
||||
}
|
||||
|
||||
if(this.attachment.mimetype.match(/image/)) {
|
||||
type = 'image';
|
||||
if (this.attachment.mimetype.match(/image/)) {
|
||||
type = 'image'
|
||||
}
|
||||
|
||||
if(this.attachment.mimetype.match(/video\/(webm|mp4)/)) {
|
||||
type = 'video';
|
||||
if (this.attachment.mimetype.match(/video\/(webm|mp4)/)) {
|
||||
type = 'video'
|
||||
};
|
||||
|
||||
return type
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue