swap api
This commit is contained in:
parent
3b39ca7578
commit
d403c12670
@ -402,7 +402,7 @@ if (noteExpander) {
|
|||||||
|
|
||||||
const capitalize = str => `${str.charAt(0).toUpperCase()}${str.slice(1)}`
|
const capitalize = str => `${str.charAt(0).toUpperCase()}${str.slice(1)}`
|
||||||
const conditionsContainer = document.getElementById('gardenConditions')
|
const conditionsContainer = document.getElementById('gardenConditions')
|
||||||
const openWeatherUrl = 'https://api.openweathermap.org/data/2.5/weather?q=Toronto&units=metric&appid=afe544d6e6f442f817b2f43eafdca885'
|
const openWeatherUrl = 'https://garden-weather-api.vercel.app/weather/toronto'
|
||||||
|
|
||||||
if (conditionsContainer) {
|
if (conditionsContainer) {
|
||||||
window.fetch(openWeatherUrl)
|
window.fetch(openWeatherUrl)
|
||||||
|
Loading…
Reference in New Issue
Block a user