latest observations silent refresh
This commit is contained in:
parent
f7a15a93c6
commit
cc896bf18d
3 changed files with 8 additions and 5 deletions
|
|
@ -29,6 +29,8 @@ class Hazards extends WeatherDisplay {
|
|||
async getData(weatherParameters, refresh) {
|
||||
// super checks for enabled
|
||||
const superResult = super.getData(weatherParameters, refresh);
|
||||
// hazards performs a silent refresh, but does not fall back to a previous fetch if no data is available
|
||||
// this is intentional to ensure the latest alerts only are displayed.
|
||||
|
||||
const alert = this.checkbox.querySelector('.alert');
|
||||
alert.classList.remove('show');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue