Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f3488b1

Browse files
committed
update the url
1 parent a1c797c commit f3488b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source-Code/WeatherApp/script.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const updateWeatherInfo = (result) => {
7777
const getData = async (cityName) => {
7878
try {
7979
const result = await fetchData(
80-
`http://api.weatherapi.com/v1/current.json?key=${apiKey}&q=${cityName}&aqi=no`,
80+
`https://api.weatherapi.com/v1/current.json?key=${apiKey}&q=${cityName}&aqi=no`,
8181
);
8282
return result;
8383
} catch (error) {
@@ -87,7 +87,7 @@ const getData = async (cityName) => {
8787
}
8888
};
8989
const getlocation = async (lat, long) => fetchData(
90-
`http://api.weatherapi.com/v1/current.json?key=${apiKey}&q=${lat},${long}&aqi=no`,
90+
`https://api.weatherapi.com/v1/current.json?key=${apiKey}&q=${lat},${long}&aqi=no`,
9191
);
9292

9393
const gotlocation = async (position) => {

0 commit comments

Comments
 (0)