Prevent error on localgpx.js. Fixes #1207

This commit is contained in:
Tom MacWright
2013-04-19 15:35:24 -04:00
parent 3773f8cef6
commit c79becb78a

View File

@@ -75,6 +75,7 @@ iD.LocalGpx = function(context) {
.on('drop.localgpx', function() {
d3.event.stopPropagation();
d3.event.preventDefault();
if (!iD.detect().filedrop) return;
var f = d3.event.dataTransfer.files[0],
reader = new FileReader();