Fix for browsers supporting a2b
Argument passed to a2b should be the ascii string.
This commit is contained in:
джерело
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) {
|
||||
|
Завантаження…
x
Посилання в новій задачі
Block a user