Skip to content

Commit

Permalink
Merge pull request #4 from jthawme/winstef-fix-file-extension-name
Browse files Browse the repository at this point in the history
Winstef fix file extension name
  • Loading branch information
jthawme authored Jul 17, 2019
2 parents 4061c69 + 86449f4 commit e71a939
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/renderer/components/UI/DropArea/DropArea.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class DropArea extends React.Component {
accept.forEach(a => {
if (!valid) {
if (a.substring(0, 1) === '.') {
if (substringFromEnd(f.name, a.length) === a) {
if (substringFromEnd(f.name, a.length).toLowerCase() === a) {
valid = true;
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/VideoPreview/VideoPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class VideoPreview extends React.Component {
const extname = file.path.split('.').pop();
const valid = ['mp4', 'mov', 'webm'];

return valid.includes(extname);
return valid.includes(extname.toLowerCase());
}

onClick = e => {
Expand Down

0 comments on commit e71a939

Please sign in to comment.