Fix nogo area loading via URL (#405)
This commit is contained in:
parent
8fff1d15cd
commit
7abd8d61dc
1 changed files with 1 additions and 3 deletions
|
|
@ -189,9 +189,7 @@ BR.NogoAreas = L.Control.extend({
|
|||
$('#nogoJSON').val(undefined);
|
||||
} else if (nogoURL) {
|
||||
// TODO: Handle {{bbox}}
|
||||
geoJSONPromise = fetch(nogoURL).then(function (response) {
|
||||
response.json();
|
||||
});
|
||||
geoJSONPromise = fetch(nogoURL).then((response) => response.json());
|
||||
} else if (nogoFile) {
|
||||
geoJSONPromise = new Promise(function (resolve, reject) {
|
||||
var reader = new FileReader();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue