Skip to content

Commit c2696ec

Browse files
author
Ændrew Rininsland
committed
Trying another way to fix the btoa issue.
1 parent aca30d8 commit c2696ec

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

github.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@
2121
if (typeof exports !== 'undefined') {
2222
XMLHttpRequest = require('xmlhttprequest').XMLHttpRequest;
2323
_ = require('underscore');
24-
btoa = require('btoa'); //jshint ignore:line
24+
if (typeof btoa === 'undefined') {
25+
var btoa = require('btoa'); //jshint ignore:line
26+
}
27+
2528
} else {
2629
_ = window._;
2730
}

0 commit comments

Comments
 (0)