aboutsummaryrefslogtreecommitdiff
path: root/client/js/api.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/js/api.js')
-rw-r--r--client/js/api.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/js/api.js b/client/js/api.js
index 07ec5ec..303c077 100644
--- a/client/js/api.js
+++ b/client/js/api.js
@@ -377,8 +377,9 @@ class Api extends events.EventTarget {
try {
if (this.userName && this.token) {
req.auth = null;
- req.set('Authorization', 'Token '
- + new Buffer(this.userName + ":" + this.token).toString('base64'))
+ // eslint-disable-next-line no-undef
+ req.set('Authorization', 'Token ' + new Buffer(
+ this.userName + ":" + this.token).toString('base64'))
} else if (this.userName && this.userPassword) {
req.auth(
this.userName,

© 2015 - 2026 Jakob L. Kreuze