mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 21:48:20 +02:00
Don't try to load gpx if drag and drop fileList empty
This commit is contained in:
@@ -128,6 +128,7 @@ iD.svg.Gpx = function(projection, context, dispatch) {
|
||||
};
|
||||
|
||||
drawGpx.files = function(fileList) {
|
||||
if (!fileList.length) return this;
|
||||
var f = fileList[0],
|
||||
reader = new FileReader();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user