Skip to content

Commit

Permalink
Update assets/js/peach.js
Browse files Browse the repository at this point in the history
  • Loading branch information
psaia committed May 21, 2012
1 parent faa3c27 commit d17ca90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/peach.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ var dropbox_handler = function (e) {
var file = e.originalEvent.dataTransfer.files;
var reader = new FileReader();

if (!file[0] || !file[0].fileName.match(/\.sql/))
if (!file[0] || !file[0].fileName || !file[0].fileName.match(/\.sql/))
return alert('Must be a .sql file.');

if (file.length > 1)
Expand Down

0 comments on commit d17ca90

Please sign in to comment.