diff --git a/src/client-oauth2.js b/src/client-oauth2.js index f2397ba..a189fac 100644 --- a/src/client-oauth2.js +++ b/src/client-oauth2.js @@ -8,7 +8,7 @@ var btoa if (typeof Buffer === 'function') { btoa = btoaBuffer } else { - btoa = window.btoa + btoa = window.btoa.bind(window) } /**