diff --git a/app.js b/app.js index eb3d2f1..690b436 100644 --- a/app.js +++ b/app.js @@ -44,7 +44,7 @@ function showError(error){ // GET WEATHER FROM API PROVIDER function getWeather(latitude, longitude){ - let api = `http://api.openweathermap.org/data/2.5/weather?lat=${latitude}&lon=${longitude}&appid=${key}`; + let api = `https://api.openweathermap.org/data/2.5/weather?lat=${latitude}&lon=${longitude}&appid=${key}`; fetch(api) .then(function(response){