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) {