mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-04 07:10:06 +08:00
fix(uploads): Display icon regardless of ext capitalization
Note: In the future we really need to consolidate file-upload.cjsx and attachment-component.cjsx. #1700
This commit is contained in:
parent
2d8bb9d3f7
commit
7a7496b675
1 changed files with 1 additions and 1 deletions
|
@ -31,6 +31,6 @@ class FileUpload extends React.Component
|
|||
Actions.removeAttachment @props.upload
|
||||
|
||||
_extension: =>
|
||||
path.extname(@props.upload.filename)[1..-1]
|
||||
path.extname(@props.upload.filename.toLowerCase())[1..-1]
|
||||
|
||||
module.exports = FileUpload
|
||||
|
|
Loading…
Reference in a new issue