code cleanup
This commit is contained in:
parent
49296e53f0
commit
2a577aaea7
4 changed files with 18 additions and 18 deletions
|
|
@ -37,7 +37,7 @@ class Hourly extends WeatherDisplay {
|
|||
} catch (e) {
|
||||
console.error('Get hourly forecast failed');
|
||||
console.error(e.status, e.responseJSON);
|
||||
if (this.enabled) this.setStatus(STATUS.failed);
|
||||
if (this.isEnabled) this.setStatus(STATUS.failed);
|
||||
// return undefined to other subscribers
|
||||
this.getDataCallback(undefined);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue