add audio mimetypes : mp4, flac

This commit is contained in:
Miloš Holba
2020-08-21 17:32:36 +02:00
parent 0082c3a6a8
commit e12e521622
2 changed files with 5 additions and 7 deletions

View File

@@ -1,9 +1,7 @@
{
"/js/main.js": "/js/main.js",
"/css/app.css": "/css/app.css",
"/js/main.e84b67db399d8c1f57c0.hot-update.js": "/js/main.e84b67db399d8c1f57c0.hot-update.js",
"/js/main.30de109047f5120e380a.hot-update.js": "/js/main.30de109047f5120e380a.hot-update.js",
"/js/main.bbd04c575f17bb289f46.hot-update.js": "/js/main.bbd04c575f17bb289f46.hot-update.js",
"/js/main.308c88e8a6e67cf82734.hot-update.js": "/js/main.308c88e8a6e67cf82734.hot-update.js",
"/js/main.0691e1e55aa442a30017.hot-update.js": "/js/main.0691e1e55aa442a30017.hot-update.js"
"/js/main.792dafb651f57548b990.hot-update.js": "/js/main.792dafb651f57548b990.hot-update.js",
"/js/main.43320a4a3fcb14b31611.hot-update.js": "/js/main.43320a4a3fcb14b31611.hot-update.js",
"/js/main.cfddc9ce030f2554c4ae.hot-update.js": "/js/main.cfddc9ce030f2554c4ae.hot-update.js"
}

View File

@@ -137,9 +137,9 @@ export default {
return this.data.type === "video";
},
isAudio() {
let mimetypes = ['mpeg' , "mp3" , 'wan'];
let mimetypes = ['mpeg' , "mp3" , 'mp4', 'wan' ,'flac'];
return (
mimetypes.includes(this.data.mimetype)
mimetypes.includes(this.data.mimetype) && this.data.type === 'audio'
);
},
canEditName() {