html5-file-selector
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -112,6 +112,8 @@ import _Promise from 'babel-runtime/core-js/promise'; | ||
if (entry && entry.isDirectory) { | ||
folderPromises.push(traverseDirectory(entry)); | ||
} else { | ||
filePromises.push(getFile(entry)); | ||
if (entry) { | ||
if (entry.isDirectory) { | ||
folderPromises.push(traverseDirectory(entry)); | ||
} else { | ||
filePromises.push(getFile(entry)); | ||
} | ||
} | ||
@@ -118,0 +120,0 @@ } else { |
10
index.js
@@ -118,6 +118,8 @@ 'use strict'; | ||
if (entry && entry.isDirectory) { | ||
folderPromises.push(traverseDirectory(entry)); | ||
} else { | ||
filePromises.push(getFile(entry)); | ||
if (entry) { | ||
if (entry.isDirectory) { | ||
folderPromises.push(traverseDirectory(entry)); | ||
} else { | ||
filePromises.push(getFile(entry)); | ||
} | ||
} | ||
@@ -124,0 +126,0 @@ } else { |
@@ -118,6 +118,8 @@ (function (global, factory) { | ||
if (entry && entry.isDirectory) { | ||
folderPromises.push(traverseDirectory(entry)); | ||
} else { | ||
filePromises.push(getFile(entry)); | ||
if (entry) { | ||
if (entry.isDirectory) { | ||
folderPromises.push(traverseDirectory(entry)); | ||
} else { | ||
filePromises.push(getFile(entry)); | ||
} | ||
} | ||
@@ -124,0 +126,0 @@ } else { |
{ | ||
"name": "html5-file-selector", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "A wrapper library for more easily handling html5 drag/drop and file input file and folder selections", | ||
@@ -5,0 +5,0 @@ "homepage": "https://www.github.com/quarklemotion/html5-file-selector", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
51461
504