Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

bug fix: uptime-kuma widget should be able to use environment variables for its api key

casmbudcf124e17b9d
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}` };
},
},