Skip to content

Commit

Permalink
Trying another way to fix the btoa issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ændrew Rininsland committed May 24, 2015
1 parent aca30d8 commit c2696ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion github.js
Original file line number Diff line number Diff line change
Expand Up @@ -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._;
}
Expand Down

0 comments on commit c2696ec

Please sign in to comment.