remove ajax for json requests
This commit is contained in:
parent
90ff0228c5
commit
5a766a809d
3 changed files with 20 additions and 6 deletions
|
|
@ -57,12 +57,7 @@ const navigation = (() => {
|
|||
const point = await utils.weather.getPoint(latLon.lat, latLon.lon);
|
||||
|
||||
// get stations
|
||||
const stationsResponse = await fetch(point.properties.observationStations, {
|
||||
method: 'GET',
|
||||
mode: 'cors',
|
||||
type: 'GET',
|
||||
});
|
||||
const stations = await stationsResponse.json();
|
||||
const stations = utils.fetch.json(point.properties.observationStations);
|
||||
|
||||
const StationId = stations.features[0].properties.stationIdentifier;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue