mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-28 08:23:46 +00:00
Prevent error on localgpx.js. Fixes #1207
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user