Skip to content

Commit

Permalink
@uppy/utils - made getDroppedFiles.js work for IE11 (#1630)
Browse files Browse the repository at this point in the history
  • Loading branch information
lakesare authored and arturi committed Jun 4, 2019
1 parent a508cf7 commit 450ab8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@uppy/utils/src/getDroppedFiles/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const fallbackApi = require('./utils/fallbackApi')
// @returns {Promise} - Array<File>
module.exports = function getDroppedFiles (dataTransfer) {
// Get all files from all subdirs. Works (at least) in Chrome, Mozilla, and Safari
if (dataTransfer.items[0] && 'webkitGetAsEntry' in dataTransfer.items[0]) {
if (dataTransfer.items && dataTransfer.items[0] && 'webkitGetAsEntry' in dataTransfer.items[0]) {
return webkitGetAsEntryApi(dataTransfer)
// Otherwise just return all first-order files
} else {
Expand Down

0 comments on commit 450ab8c

Please sign in to comment.