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: Fixes Authorization headers for Glances widget (#546)

Alicia Sykes56798fbdc46f
diff --git a/src/mixins/GlancesMixin.js b/src/mixins/GlancesMixin.js
index 413845e5..2cfd3715 100644
--- a/src/mixins/GlancesMixin.js
+++ b/src/mixins/GlancesMixin.js
@@ -14,8 +14,7 @@ export default {
credentials() {
if (this.options.username && this.options.password) {
const stringifiedUser = `${this.options.username}:${this.options.password}`;
- const headers = { Authorization: `Basic ${window.btoa(stringifiedUser)}` };
- return { headers };
+ return { Authorization: `Basic ${window.btoa(stringifiedUser)}` };
}
return null;
},