Skip to content

Commit

Permalink
Updated code
Browse files Browse the repository at this point in the history
  • Loading branch information
weatherstorm committed Mar 31, 2024
1 parent 71dcf9e commit ba91f68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/checkdiff.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* checkDiff */
/* checkdiff.js
Update version to work with Weewx 5 */

function checkDiff(datestr) {
// Parse the input date string
Expand Down Expand Up @@ -42,6 +43,7 @@ function checkDiff(datestr) {
text.innerHTML = "<i class='fa-solid fa-triangle-exclamation m-orange'></i><b> Old Weather Data </b>";
}

//Inset alery in the freshwater element
var freshWeatherElement = document.getElementById('freshweather');
if (freshWeatherElement) {
freshWeatherElement.appendChild(text);
Expand Down

0 comments on commit ba91f68

Please sign in to comment.