mirror of
https://github.com/mue/mue.git
synced 2026-07-22 00:07:23 +02:00
fix: changelog tab and other improvements
This commit is contained in:
@@ -49,7 +49,7 @@ export default class Weather extends React.PureComponent {
|
||||
};
|
||||
|
||||
if (!this.state.weather.temp) {
|
||||
data = await (await fetch (window.constants.WEATHER_URL + `?city=${this.state.location}`)).json();
|
||||
data = await (await fetch (window.constants.WEATHER_URL + `/current?city=${this.state.location}`)).json();
|
||||
}
|
||||
|
||||
if (data.cod === '404') {
|
||||
@@ -76,6 +76,7 @@ export default class Weather extends React.PureComponent {
|
||||
temp_max = ((temp_max - 273.15) * 1.8) + 32;
|
||||
temp_text = '°F';
|
||||
break;
|
||||
// kelvin
|
||||
default: break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user