Add 7-zip file explorer

This commit is contained in:
2024-01-25 00:29:41 +01:00
parent 0ea5a20d74
commit 62a4a6426f
3 changed files with 27 additions and 5 deletions

View File

@@ -38,7 +38,7 @@ export const file_set_href = file => {
export const file_type = file => {
if (file.mime_type === "application/bittorrent" || file.mime_type === "application/x-bittorrent") {
return "torrent"
} else if (file.mime_type === "application/zip") {
} else if (file.mime_type === "application/zip" || file.mime_type === "application/x-7z-compressed") {
return "zip"
} else if (file.mime_type.startsWith("image")) {
return "image"