Merge branch 'master' into UI-Customization

This commit is contained in:
Kyle Shockey
2017-04-04 11:13:46 -07:00

View File

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