Skip to content

Commit 1a22685

Browse files
committed
Use utils
1 parent a2f1969 commit 1a22685

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/indexingapi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
'use strict';
22

33
require('isomorphic-fetch');
4+
const util = require('./util');
45
const Promise = require('es6-promise').Promise;
5-
const { Base64 } = require('js-base64');
66

77
const BASE_URL = 'https://api.addsearch.com/v2/indices/';
88

99
const getHeaders = function(sitekey, privatekey) {
1010
return {
11-
'Authorization': 'Basic ' + Base64.encode(sitekey + ':' + privatekey),
11+
'Authorization': 'Basic ' + util.base64(sitekey + ':' + privatekey),
1212
'Content-Type': 'application/json'
1313
};
1414
}

0 commit comments

Comments
 (0)