Skip to content

Commit

Permalink
fixed enabled for valid file types
Browse files Browse the repository at this point in the history
Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
  • Loading branch information
elzody committed Mar 1, 2024
1 parent fb1f738 commit 7da5979
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/file-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ const fileAction = new FileAction({
iconSvgInline: () => icon,

enabled: (files) => {
for (const file of files) {
return file.type == 'file' && validMimeTypes.includes(file.mime)
}
const file = files[0]

return file.type === 'file' && validMimeTypes.includes(file.mime)
},

exec: async (file) => {
Expand Down

0 comments on commit 7da5979

Please sign in to comment.