Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix Safari, items is not an array

  • Loading branch information...
commit 26d0d97566bcc6726093ab51d9a7309f99e88d66 1 parent cdf4547
@tj tj authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  index.js
View
3  index.js
@@ -97,7 +97,8 @@ Dropload.prototype.ondrop = function(e){
e.stopPropagation();
e.preventDefault();
this.classes.remove('over');
- this.drop(e.dataTransfer.items);
+ var items = e.dataTransfer.items;
+ if (items) this.drop(items);
this.upload(e.dataTransfer.files);
};
Please sign in to comment.
Something went wrong with that request. Please try again.