|
@@ -1021,16 +1021,20 @@
|
|
|
res += 'image/webp,'
|
|
|
}
|
|
|
|
|
|
- if(this.mediaTypes.mp4) {
|
|
|
- res += 'video/mp4,'
|
|
|
+ if(this.mediaTypes.avif) {
|
|
|
+ res += 'image/avif,'
|
|
|
}
|
|
|
|
|
|
if(this.mediaTypes.heic) {
|
|
|
res += 'image/heic,'
|
|
|
}
|
|
|
|
|
|
- if(this.mediaTypes.avif) {
|
|
|
- res += 'image/avif,'
|
|
|
+ if(this.mediaTypes.mp4) {
|
|
|
+ res += 'video/mp4,'
|
|
|
+ }
|
|
|
+
|
|
|
+ if(this.mediaTypes.mov) {
|
|
|
+ res += 'video/mov,'
|
|
|
}
|
|
|
|
|
|
if(res.endsWith(',')) {
|
|
@@ -1096,7 +1100,7 @@
|
|
|
if(types && types.length) {
|
|
|
types.forEach((type) => {
|
|
|
let mime = type.split('/')[1];
|
|
|
- if(['jpeg', 'png', 'gif', 'webp', 'mp4', 'avif'].includes(mime)) {
|
|
|
+ if(['jpeg', 'png', 'gif', 'webp', 'avif', 'heic', 'mp4', 'mov'].includes(mime)) {
|
|
|
this.mediaTypes[mime] = true;
|
|
|
}
|
|
|
})
|