diff --git a/github.js b/github.js index 191d2b71..99dc5861 100644 --- a/github.js +++ b/github.js @@ -21,7 +21,10 @@ if (typeof exports !== 'undefined') { XMLHttpRequest = require('xmlhttprequest').XMLHttpRequest; _ = require('underscore'); - btoa = require('btoa'); //jshint ignore:line + if (typeof btoa === 'undefined') { + var btoa = require('btoa'); //jshint ignore:line + } + } else { _ = window._; }