clean up paths for server and server-dist, remove cors #96
This commit is contained in:
parent
dc64e4bd7f
commit
974a061b44
7 changed files with 9 additions and 154 deletions
|
|
@ -42,7 +42,6 @@ class CurrentWeather extends WeatherDisplay {
|
|||
// station observations
|
||||
// eslint-disable-next-line no-await-in-loop
|
||||
observations = await json(`${station.id}/observations`, {
|
||||
cors: true,
|
||||
data: {
|
||||
limit: 2,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ class Radar extends WeatherDisplay {
|
|||
const lists = (await Promise.all(baseUrls.map(async (url) => {
|
||||
try {
|
||||
// get a list of available radars
|
||||
return text(url, { cors: true });
|
||||
return text(url);
|
||||
} catch (error) {
|
||||
console.log('Unable to get list of radars');
|
||||
console.error(error);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue