Skip to content

Commit e423c15

Browse files
committed
(fix) append video type
1 parent 2604aca commit e423c15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ChatWindow/Message.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ export default {
505505
},
506506
checkVideoType(file) {
507507
if (!file) return
508-
const videoTypes = ['mp4', 'ogg', 'webm']
508+
const videoTypes = ['video/mp4', 'video/ogg', 'video/webm']
509509
const { type } = file
510510
return videoTypes.some(t => type.toLowerCase().includes(t))
511511
},

0 commit comments

Comments
 (0)