add refresh flag to getdata funcions

This commit is contained in:
Matt Walsh
2025-04-02 11:10:58 -05:00
parent b272aa298a
commit 23cc1a1f7a
14 changed files with 34 additions and 18 deletions

View File

@@ -23,7 +23,7 @@ class HourlyGraph extends WeatherDisplay {
this.elem.querySelector('.header .right').append(header);
}
async getData() {
async getData(_weatherParameters, refresh) {
if (!super.getData()) return;
const data = await getHourlyData(() => this.stillWaiting());