Fix for browsers supporting a2b

Argument passed to a2b should be the ascii string.
This commit is contained in:
Kristian Sons 2016-04-09 12:02:37 +02:00
父節點 f6c7618c46
當前提交 2dd6aa1c2c

查看文件

@ -6,7 +6,7 @@
function atob(str) {
// normal window
if ('function' === typeof a2b) {
return a2b(a2b);
return a2b(str);
}
// browserify (web worker)
else if ('function' === typeof Buffer) {