Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
bug fixed
  • Loading branch information
fikretellek committed Feb 24, 2024
commit 29a015ca31e76dbcd07da5ecad2584a669008d4c
2 changes: 1 addition & 1 deletion challenge-weather-app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ <h1 class="title">
});

function getFetchCity(input, key) {
fetch(`http://api.openweathermap.org/data/2.5/weather?q=${input}&APPID=${key}`)
fetch(`https://api.openweathermap.org/data/2.5/weather?q=${input}&APPID=${key}`)
.then((response) => response.json())
.then((data) =>
data.weather[0].description ? getFetchPhoto(data.weather[0].description) : console.log("no city")
Expand Down