Update utils.js

This commit is contained in:
shockey
2017-04-04 11:06:33 -07:00
committed by GitHub
parent b9c1402882
commit e4c47717eb

View File

@@ -549,13 +549,13 @@ export const parseSeach = () => {
}
export const btoa = (str) => {
let buffer;
let buffer
if (str instanceof Buffer) {
buffer = str;
buffer = str
} else {
buffer = new Buffer(str.toString(), "utf-8");
buffer = new Buffer(str.toString(), "utf-8")
}
return buffer.toString("base64");
return buffer.toString("base64")
}