expose more data for scroll messages
This commit is contained in:
parent
e4ce0b6cc6
commit
9b422dd697
3 changed files with 4 additions and 3 deletions
|
|
@ -231,7 +231,7 @@ class CurrentWeather extends WeatherDisplay {
|
|||
this.setAutoReload();
|
||||
if (stillWaiting) this.stillWaitingCallbacks.push(stillWaiting);
|
||||
return new Promise((resolve) => {
|
||||
if (this.data) resolve(this.data);
|
||||
if (this.data) resolve({ data: this.data, parameters: this.weatherParameters });
|
||||
// data not available, put it into the data callback queue
|
||||
this.getDataCallbacks.push(() => resolve(this.data));
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue