From dcf124e17b9de627da3f4189d9fffce832442c1b Mon Sep 17 00:00:00 2001 From: casmbu Date: Sat, 2 Aug 2025 15:29:04 -0400 Subject: [PATCH] bug fix: uptime-kuma widget should be able to use environment variables for its api key --- src/components/Widgets/UptimeKuma.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Widgets/UptimeKuma.vue b/src/components/Widgets/UptimeKuma.vue index a6995cc6..e7fb312f 100644 --- a/src/components/Widgets/UptimeKuma.vue +++ b/src/components/Widgets/UptimeKuma.vue @@ -60,10 +60,10 @@ export default { }, /* Create authorisation header for the instance from the apiKey */ authHeaders() { - if (!this.options.apiKey) { + if (!this.apiKey) { return {}; } - const encoded = window.btoa(`:${this.options.apiKey}`); + const encoded = window.btoa(`:${this.apiKey}`); return { Authorization: `Basic ${encoded}` }; }, },