Disable video player for mastroska files because no browser actually supports them anymore

This commit is contained in:
2024-06-18 16:47:57 +02:00
parent dfb471063c
commit eef2c3156d
3 changed files with 7 additions and 3 deletions

View File

@@ -43,9 +43,8 @@ export const file_type = file => {
} else if (file.mime_type.startsWith("image")) {
return "image"
} else if (
file.mime_type.startsWith("video") ||
file.mime_type === "application/matroska" ||
file.mime_type === "application/x-matroska"
file.mime_type.startsWith("video") &&
file.mime_type !== "video/x-matroska"
) {
return "video"
} else if (