(position)
| 29 | } |
| 30 | |
| 31 | function onSuccess(position){ |
| 32 | const {latitude, longitude} = position.coords; |
| 33 | api = `https://api.openweathermap.org/data/2.5/weather?lat=${latitude}&lon=${longitude}&units=metric&appid=${'de1400a8c4500ee4e0ebe2e706f9d077'}`; |
| 34 | fetchData(); |
| 35 | } |
| 36 | |
| 37 | function onError(error){ |
| 38 | infoTxt.innerText = error.message; |
nothing calls this directly
no test coverage detected