mirror of
https://github.com/Nezumi-2711/onedrive-vercel-index.git
synced 2026-09-22 20:01:46 +00:00
minor export adjustments
This commit is contained in:
@@ -98,6 +98,8 @@ export function getFileIcon(fileName: string, flags?: { video?: boolean }): [Ico
|
||||
const extension = getExtension(fileName)
|
||||
let icon = hasKey(extensions, extension) ? extensions[extension] : icons.file
|
||||
|
||||
// Files with '.ts' extensions may be TypeScript files or TS Video files, we check for the flag 'video'
|
||||
// to determine which icon to render for '.ts' files.
|
||||
if (extension === 'ts') {
|
||||
if (flags?.video) {
|
||||
icon = icons.video
|
||||
|
||||
Reference in New Issue
Block a user