mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-21 02:29:23 +00:00
fix(listeners) dragndrop: no check items.length
This commit is contained in:
parent
356094b19c
commit
5c9182a84c
1 changed files with 1 additions and 1 deletions
|
|
@ -341,7 +341,7 @@ var Util, DOM, CloudFunc, CloudCmd;
|
|||
|
||||
event.preventDefault();
|
||||
|
||||
if (items && items[0].webkitGetAsEntry)
|
||||
if (items && items.length && items[0].webkitGetAsEntry)
|
||||
DOM.uploadDirectory(items);
|
||||
else
|
||||
DOM.uploadFiles(files);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue