Fix case on flag path

This commit is contained in:
Herbert Wolverson 2024-07-27 10:51:32 -05:00
parent eebc6372e4
commit ec8707ac6f

View File

@ -98,7 +98,7 @@ function countryDropdown() {
// Add items
data.forEach((row) => {
let li = document.createElement("li");
li.innerHTML = "<img alt='" + row.iso_code + "' src='flags/" + row.iso_code + ".svg' height=12 width=12 />" + row.name + " (" + row.count + ")";
li.innerHTML = "<img alt='" + row.iso_code + "' src='flags/" + row.iso_code.toLowerCase() + ".svg' height=12 width=12 />" + row.name + " (" + row.count + ")";
li.classList.add("dropdown-item");
li.onclick = () => {
selectCountry(row.iso_code);