From 888b35ea7387c88cb4b9539b8db022e4dd46ecb9 Mon Sep 17 00:00:00 2001 From: Matt Walsh Date: Tue, 17 Jan 2023 14:13:51 -0600 Subject: [PATCH] code cleanup --- server/scripts/modules/extendedforecast.mjs | 2 +- server/scripts/modules/hourly-graph.mjs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/server/scripts/modules/extendedforecast.mjs b/server/scripts/modules/extendedforecast.mjs index 321b358..aa5b859 100644 --- a/server/scripts/modules/extendedforecast.mjs +++ b/server/scripts/modules/extendedforecast.mjs @@ -55,8 +55,8 @@ class ExtendedForecast extends WeatherDisplay { const fill = { icon: { type: 'img', src: Day.icon }, condition: Day.text, + date: Day.dayName, }; - fill.date = Day.dayName; const { low } = Day; if (low !== undefined) { diff --git a/server/scripts/modules/hourly-graph.mjs b/server/scripts/modules/hourly-graph.mjs index ea42dbf..eb7d9d7 100644 --- a/server/scripts/modules/hourly-graph.mjs +++ b/server/scripts/modules/hourly-graph.mjs @@ -8,7 +8,6 @@ import { DateTime } from '../vendor/auto/luxon.mjs'; class HourlyGraph extends WeatherDisplay { constructor(navId, elemId, defaultActive) { - // special height and width for scrolling super(navId, elemId, 'Hourly Graph', defaultActive); // move the top right data into the correct location on load