🐛 Fixes Authorization headers for Glances widget (#546)

This commit is contained in:
Alicia Sykes 2022-03-27 21:21:08 +01:00
parent 730a67435e
commit 56798fbdc4

View File

@ -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;
},