code cleanup

This commit is contained in:
Matt Walsh 2023-01-17 14:13:51 -06:00
parent 2a9e5b370e
commit 888b35ea73
2 changed files with 1 additions and 2 deletions

View file

@ -55,8 +55,8 @@ class ExtendedForecast extends WeatherDisplay {
const fill = { const fill = {
icon: { type: 'img', src: Day.icon }, icon: { type: 'img', src: Day.icon },
condition: Day.text, condition: Day.text,
date: Day.dayName,
}; };
fill.date = Day.dayName;
const { low } = Day; const { low } = Day;
if (low !== undefined) { if (low !== undefined) {

View file

@ -8,7 +8,6 @@ import { DateTime } from '../vendor/auto/luxon.mjs';
class HourlyGraph extends WeatherDisplay { class HourlyGraph extends WeatherDisplay {
constructor(navId, elemId, defaultActive) { constructor(navId, elemId, defaultActive) {
// special height and width for scrolling
super(navId, elemId, 'Hourly Graph', defaultActive); super(navId, elemId, 'Hourly Graph', defaultActive);
// move the top right data into the correct location on load // move the top right data into the correct location on load