mirror of
https://github.com/myronblair/jarvis
synced 2026-07-28 08:43:00 -05:00
Fix weather widget location label stuck on Fort Worth: the span was a static HTML placeholder never wired to the API response. Wire loadWeather() to update it from d.location, and correct the fallback text to Weatherford, TX
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -982,6 +982,7 @@ async function loadWeather() {
|
||||
const d = await api('weather');
|
||||
if (!d || !d.current) return;
|
||||
const c = d.current;
|
||||
if (d.location) document.getElementById('weather-loc').textContent = d.location.toUpperCase();
|
||||
document.getElementById('weather-temp').textContent = c.temp;
|
||||
document.getElementById('weather-desc').textContent = (c.desc || '').toUpperCase();
|
||||
document.getElementById('weather-feels').textContent = c.feels + '°F';
|
||||
|
||||
Reference in New Issue
Block a user