File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ const updateWeatherInfo = (result) => {
7777const 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} ;
8989const 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
9393const gotlocation = async ( position ) => {
You can’t perform that action at this time.
0 commit comments