mirror of
https://github.com/DustinBrett/daedalOS.git
synced 2025-12-06 00:20:05 +01:00
This commit is contained in:
parent
2fa4ea9fb1
commit
acfcee0798
|
|
@ -851,15 +851,13 @@ export const getFileType = (extension: string): string => {
|
|||
const ext = extension.toUpperCase();
|
||||
|
||||
switch (ext) {
|
||||
case SHORTCUT_EXTENSION:
|
||||
case ".URL":
|
||||
return "Shortcut";
|
||||
case ".TXT":
|
||||
return "Text Document";
|
||||
case ".RTF":
|
||||
case ".WHTML":
|
||||
return "Rich Text Document";
|
||||
case ".URL":
|
||||
return "Shortcut";
|
||||
default:
|
||||
return extensions[extension]?.type || `${ext.replace(".", "")} File`;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user