mirror of
https://github.com/Lissy93/dashy.git
synced 2025-12-06 00:26:20 +01:00
bug fix: uptime-kuma widget should be able to use environment variables for its api key
This commit is contained in:
parent
97b884d9c4
commit
dcf124e17b
1 changed files with 2 additions and 2 deletions
|
|
@ -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}` };
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue