Prettified Code!
This commit is contained in:
2
index.js
2
index.js
@@ -43,7 +43,7 @@ instance.prototype.init = function () {
|
|||||||
instance.prototype.auth = function () {
|
instance.prototype.auth = function () {
|
||||||
var self = this
|
var self = this
|
||||||
self.header = []
|
self.header = []
|
||||||
|
|
||||||
if (self.config.apiToken !== null && self.config.apiToken.length > 0) {
|
if (self.config.apiToken !== null && self.config.apiToken.length > 0) {
|
||||||
auth = Buffer.from(self.config.apiToken + ':' + 'api_token').toString('base64')
|
auth = Buffer.from(self.config.apiToken + ':' + 'api_token').toString('base64')
|
||||||
self.header['Content-Type'] = 'application/json'
|
self.header['Content-Type'] = 'application/json'
|
||||||
|
|||||||
Reference in New Issue
Block a user