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.
ActiveXObject
1 parent 6187585 commit 7acae3dCopy full SHA for 7acae3d
lib/xmlhttprequest.js
@@ -1,8 +1,5 @@
1
// browser shim for xmlhttprequest module
2
3
-// Indicate to eslint that ActiveXObject is global
4
-/* global ActiveXObject */
5
-
6
var hasCORS = require('has-cors');
7
8
module.exports = function (opts) {
@@ -34,7 +31,7 @@ module.exports = function (opts) {
34
31
35
32
if (!xdomain) {
36
33
try {
37
- return new ActiveXObject('Microsoft.XMLHTTP');
+ return new global[['Active'].concat('Object').join('X')]('Microsoft.XMLHTTP');
38
} catch (e) { }
39
}
40
};
0 commit comments