Merge pull request #947 from GSA/945-upload-csv-not-working

945 - Fixed the javascript so it's not breaking every page
This commit is contained in:
Carlo Costino
2023-11-27 17:46:09 -05:00
committed by GitHub

View File

@@ -1,9 +1,10 @@
(function (window) {
"use strict";
// Show the current year
document.getElementById("current-year").innerHTML = new Date().getFullYear();
const currentYearElement = document.getElementById("current-year");
})(window);
if (currentYearElement) {
currentYearElement.textContent = new Date().getFullYear();
}
})(window);