Update index.js

This commit is contained in:
zyqunix 2025-06-12 01:03:12 +02:00 committed by GitHub
parent c3adf06b18
commit 6316f390d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -232,7 +232,7 @@ function fetchSong() {
function fetchWeather(location) {
const target = document.getElementById('weather');
const query = location ? location : "munich";
const query = location ? location : "Munich";
fetch(`https://wttr.in/${query}?format=%t | %C`).then(response => response.text()).then(data => {
target.innerText = data;
}).catch(() => {