Skip to content

Commit f001513

Browse files
committed
(fix) extra dot in file type
1 parent 735a4c1 commit f001513

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ChatWindow/Room.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ export default {
767767
blob: blobFile,
768768
name: file.name.substring(0, typeIndex),
769769
size: file.size,
770-
type: file.name.substring(typeIndex) || file.type,
770+
type: file.name.substring(typeIndex + 1) || file.type,
771771
localUrl: fileURL
772772
}
773773
if (this.isImageCheck(this.file)) this.imageFile = fileURL

0 commit comments

Comments
 (0)