fixed mixup of atob / btoa
This commit is contained in:
parent
aacae887e8
commit
65407a29d0
2
index.js
2
index.js
|
@ -2,7 +2,7 @@
|
|||
"use strict";
|
||||
|
||||
function atob(str) {
|
||||
return new Buffer(str, 'utf8').toString('base64');
|
||||
return new Buffer(str, 'base64').toString('utf8');
|
||||
}
|
||||
|
||||
module.exports = atob;
|
||||
|
|
Loading…
Reference in New Issue