better fullscreen

This commit is contained in:
Matt Walsh
2020-10-01 22:35:19 -05:00
parent 11c8d8b2b2
commit c568fcf781
7 changed files with 31 additions and 16 deletions

View File

@@ -80,9 +80,9 @@ const currentWeatherScroll = (() => {
// temperature
(data) => {
let text = `Temp: ${data.Temperature}${degree} ${data.TemperatureUnit}`;
if (data.HeatIndex !== data.Temperature) {
if (data.observations.heatIndex.value) {
text += ` Heat Index: ${data.HeatIndex}${degree} ${data.TemperatureUnit}`;
} else if (data.WindChill !== '' && data.WindChill < data.Temperature) {
} else if (data.observations.windChill.value) {
text += ` Wind Chill: ${data.WindChill}${degree} ${data.TemperatureUnit}`;
}
return text;