Skip to content

Commit c1f9af1

Browse files
committed
Modify fetch url
1 parent 8023619 commit c1f9af1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/events.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const events = function events() {
2323
async function getSearch(searchBar) {
2424
try {
2525
const value = (document.getElementById(searchBar).value).toLowerCase();
26-
const url = `http://api.openweathermap.org/data/2.5/weather?q=${value}&APPID=903507f17d707fecd352d38301efba77`;
26+
const url = `https://api.openweathermap.org/data/2.5/weather?q=${value}&APPID=903507f17d707fecd352d38301efba77`;
2727
const response = await fetch(url, { mode: 'cors' });
2828
const cityData = await response.json();
2929
showFlow(cityData);

0 commit comments

Comments
 (0)