Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
GZ30eee authored Feb 18, 2024
1 parent f199cce commit b74717d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ window.onclick = function (event) {
};

function forecastDetails(info) {
document.querySelector(".forecast").innerHTML = "";
if (info.error) {
infoTxt.classList.replace("pending", "error");
infoTxt.innerText = `${inputField.value} isn't a valid city name`;
Expand Down

0 comments on commit b74717d

Please sign in to comment.