From c7733ad683e93583641446fc97a7d108c423accd Mon Sep 17 00:00:00 2001 From: Fredrik Mandal Date: Sat, 9 Nov 2019 00:52:29 +0100 Subject: [PATCH] Do not edit in browser without testing when it's been ages since the last edit... Should work now, though. --- MMM-YrThen.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MMM-YrThen.js b/MMM-YrThen.js index a1cf555..47ee8df 100644 --- a/MMM-YrThen.js +++ b/MMM-YrThen.js @@ -156,7 +156,9 @@ Module.register('MMM-YrThen', { minValue = this.round(newData.temperature.min, 1); } if(this.config.showMaxMin){ - if(newData.temperature.min && newData.temperature.max) forecastCell.innerHTML += '' + minValue + maxMinSeparator + maxValue + '
'; + if(newData.temperature.min && newData.temperature.max){ + forecastCell.innerHTML += '' + minValue + this.config.maxMinSeparator + maxValue + '
'; + } else forecastCell.innerHTML += ' ' + tempValue + '
'; } else{