Skip to content

Commit

Permalink
fix: filetype lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickmccallum committed Dec 27, 2023
1 parent b9e192b commit 8e66d3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/FileDrop/FileDrop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const FileDrop = () => {
if (extension) {
console.info(`Trying to find ${extension} in`, mimeData)
for (const mime of mimeData) {
if (mime.types.includes(extension)) {
if (mime.fileTypes.includes(extension)) {
navigate(`/${mime.name}?source=data`)
return
}
Expand Down

0 comments on commit 8e66d3f

Please sign in to comment.