We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4665ea0 commit 5d0c9a4Copy full SHA for 5d0c9a4
github.js
@@ -16,17 +16,17 @@
16
// Initial Setup
17
// -------------
18
19
- var XMLHttpRequest, _;
+ var XMLHttpRequest, _, btoa;
20
/* istanbul ignore else */
21
if (typeof exports !== 'undefined') {
22
XMLHttpRequest = require('xmlhttprequest').XMLHttpRequest;
23
_ = require('underscore');
24
if (typeof btoa === 'undefined') {
25
btoa = require('btoa'); //jshint ignore:line
26
}
27
-
28
} else {
29
- _ = window._;
+ _ = window._;
+ btoa = window.btoa;
30
31
32
//prefer native XMLHttpRequest always
0 commit comments