From 2dd6aa1c2c12987fac92df5e8e53028ed695edbf Mon Sep 17 00:00:00 2001 From: Kristian Sons Date: Sat, 9 Apr 2016 12:02:37 +0200 Subject: [PATCH] Fix for browsers supporting a2b Argument passed to a2b should be the ascii string. --- browser-atob.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser-atob.js b/browser-atob.js index 95ff45b..3eb0262 100644 --- a/browser-atob.js +++ b/browser-atob.js @@ -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) {