From 450ab8ceb1a8aefe8cff125ced392b3d11457db0 Mon Sep 17 00:00:00 2001 From: Evgenia Karunus Date: Tue, 4 Jun 2019 21:19:39 +0500 Subject: [PATCH] @uppy/utils - made getDroppedFiles.js work for IE11 (#1630) --- packages/@uppy/utils/src/getDroppedFiles/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@uppy/utils/src/getDroppedFiles/index.js b/packages/@uppy/utils/src/getDroppedFiles/index.js index ae5d7bc7f8..17f7f14cdc 100644 --- a/packages/@uppy/utils/src/getDroppedFiles/index.js +++ b/packages/@uppy/utils/src/getDroppedFiles/index.js @@ -8,7 +8,7 @@ const fallbackApi = require('./utils/fallbackApi') // @returns {Promise} - Array 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 {