Skip to content

Commit

Permalink
Do not edit in browser without testing when it's been ages since the …
Browse files Browse the repository at this point in the history
…last edit... Should work now, though.
  • Loading branch information
fmandal committed Nov 8, 2019
1 parent 6f08321 commit c7733ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MMM-YrThen.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 += '<span class="bright small">' + minValue + maxMinSeparator + maxValue + '</span><br>';
if(newData.temperature.min && newData.temperature.max){
forecastCell.innerHTML += '<span class="bright small">' + minValue + this.config.maxMinSeparator + maxValue + '</span><br>';
}
else forecastCell.innerHTML += ' <span class="bright small">' + tempValue + '</span><br>';
}
else{
Expand Down

0 comments on commit c7733ad

Please sign in to comment.