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
parent f6c7618c46
commit 2dd6aa1c2c
1 changed files with 1 additions and 1 deletions

View File

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