Skip to content

Commit e46c526

Browse files
committed
Merge pull request #39 from slamdata/ready/module-require-detect
Detect node with module.require
2 parents db63471 + 119f01e commit e46c526

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Network/HTTP/Affjax.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// jshint maxparams: 5
99
exports._ajax = function (mkHeader, options, canceler, errback, callback) {
1010
var platformSpecific = { };
11-
if (typeof module !== "undefined" && module.exports) {
11+
if (typeof module !== "undefined" && module.require) {
1212
// We are on node.js
1313
platformSpecific.newXHR = function () {
1414
var XHR = module.require("xmlhttprequest").XMLHttpRequest;

0 commit comments

Comments
 (0)