fix hourly graph not updating close #77
This commit is contained in:
parent
91f669e828
commit
eacd82b4f4
3 changed files with 17 additions and 5 deletions
|
|
@ -130,6 +130,8 @@ class CurrentWeather extends WeatherDisplay {
|
|||
// make data available outside this class
|
||||
// promise allows for data to be requested before it is available
|
||||
async getCurrentWeather(stillWaiting) {
|
||||
// an external caller has requested data, set up auto reload
|
||||
this.setAutoReload();
|
||||
if (stillWaiting) this.stillWaitingCallbacks.push(stillWaiting);
|
||||
return new Promise((resolve) => {
|
||||
if (this.data) resolve(this.data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue