We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88794ec commit 5c5496aCopy full SHA for 5c5496a
lib/request.js
@@ -203,7 +203,7 @@ var indexOf = function (xs, x) {
203
};
204
205
var isXHR2Compatible = function (obj) {
206
- return obj instanceof window.Blob
207
- || obj instanceof window.ArrayBuffer
208
- || obj instanceof window.FormData;
+ if (typeof Blob !== 'undefined' && obj instanceof Blob) return true;
+ if (typeof ArrayBuffer !== 'undefined' && obj instanceof ArrayBuffer) return true;
+ if (typeof FormData !== 'undefined' && obj instanceof FormData) return true;
209
0 commit comments