Merge pull request #2 from pwnall/patch-1
Fix btoa to match browser implementations
This commit is contained in:
commit
d86a3f5fc3
|
@ -2,7 +2,7 @@
|
|||
"use strict";
|
||||
|
||||
function btoa(str) {
|
||||
return new Buffer(str, 'utf8').toString('base64');
|
||||
return new Buffer(str, 'binary').toString('base64');
|
||||
}
|
||||
|
||||
module.exports = btoa;
|
||||
|
|
Loading…
Reference in New Issue