We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04ad0a3 commit e77d0a0Copy full SHA for e77d0a0
lib/index.js
@@ -24,7 +24,7 @@ function createActiveXHR() {
24
}
25
26
// Create the request object
27
-var createXHR = window.ActiveXObject ?
+var createXHR = (typeof window !== "undefined" && window.ActiveXObject) ?
28
/* Microsoft failed to properly
29
* implement the XMLHttpRequest in IE7 (can't request local files),
30
* so we use the ActiveXObject when it is available
0 commit comments