mirror of
https://git.pleroma.social/sjw/pleroma-fe.git
synced 2024-12-24 00:25:04 +01:00
Fix filetype detection
This commit is contained in:
parent
91272dc555
commit
cddb173089
@ -9,11 +9,11 @@ const fileType = (typeString) => {
|
||||
type = 'image'
|
||||
}
|
||||
|
||||
if (typeString.match(/video\/(webm|mp4)/)) {
|
||||
if (typeString.match(/video/)) {
|
||||
type = 'video'
|
||||
}
|
||||
|
||||
if (typeString.match(/audio|ogg/)) {
|
||||
if (typeString.match(/audio/)) {
|
||||
type = 'audio'
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user