mirror of
https://github.com/zyqunix/tools.git
synced 2025-07-05 14:00:31 +02:00
Update index.js
This commit is contained in:
parent
c3adf06b18
commit
6316f390d7
1 changed files with 1 additions and 1 deletions
|
@ -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(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue