This commit is contained in:
dintho 2026-03-08 22:21:04 +00:00 committed by GitHub
commit d2a4abc6fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -56,7 +56,8 @@ export default {
return this.options.numDays || 6;
},
endpoint() {
const { apiKey, city } = this.options;
const apiKey = this.parseAsEnvVar(this.options.apiKey);
const city = this.options;
const params = `?q=${city}&cnt=${this.numDays}&units=${this.units}&appid=${apiKey}`;
return `${widgetApiEndpoints.weatherForecast}${params}`;
},