Fix for browsers supporting a2b
Argument passed to a2b should be the ascii string.
This commit is contained in:
parent
f6c7618c46
commit
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) {
|
||||
|
|
Loading…
Reference in New Issue