mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
Fix unreleased regression where OSM notes were being parsed as JSON and thus not loading (re: #7188)
This commit is contained in:
@@ -597,7 +597,11 @@ export default {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
} else {
|
||||
return parseJSON(payload, callback, options);
|
||||
if (path.indexOf('.json') !== -1) {
|
||||
return parseJSON(payload, callback, options);
|
||||
} else {
|
||||
return parseXML(payload, callback, options);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user