Skip to content

Commit

Permalink
fix displaying header when no warnings available
Browse files Browse the repository at this point in the history
Fixing an error for LukeSkywalker92#29 where the header of the module was hidden even if there was a weather warning.
  • Loading branch information
codac authored Nov 23, 2021
1 parent 8fa93a9 commit 84f9fcf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MMM-DWD-WarnWeather.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ Module.register("MMM-DWD-WarnWeather", {
var duration = document.createElement("div");
duration.className = 'duration';
duration.innerHTML = start + ' - ' + end;
var newLine = document.createElement("br");
var newLine1 = document.createElement("br");
var newLine2 = document.createElement("br");
description.appendChild(headline);
description.appendChild(duration);
warnWrapper.appendChild(icon);
Expand Down

0 comments on commit 84f9fcf

Please sign in to comment.