Skip to content

Commit

Permalink
Merge pull request #14 from naturuplift/development
Browse files Browse the repository at this point in the history
fixed API https call
  • Loading branch information
naturuplift authored Dec 22, 2023
2 parents be7c001 + 01be7de commit 2a4a635
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/scripts/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ function cityGeocodingAPI(cityGeo) {
let limit = 'limit=1';

// API call
const apiUrl = 'http://api.openweathermap.org/geo/1.0/direct?q=' + cityGeo + '&' + AUTH + '&' + limit;
const apiUrl = 'https://api.openweathermap.org/geo/1.0/direct?q=' + cityGeo + '&' + AUTH + '&' + limit;

// return a fetch promise that resolves with city latitude and longitude
return new Promise((resolve, reject) => {
Expand Down

0 comments on commit 2a4a635

Please sign in to comment.