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) => {
77
77
const getData = async ( cityName ) => {
78
78
try {
79
79
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` ,
81
81
) ;
82
82
return result ;
83
83
} catch ( error ) {
@@ -87,7 +87,7 @@ const getData = async (cityName) => {
87
87
}
88
88
} ;
89
89
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` ,
91
91
) ;
92
92
93
93
const gotlocation = async ( position ) => {
You can’t perform that action at this time.
0 commit comments