Skip to content

Commit

Permalink
Merge pull request #39 from slamdata/ready/module-require-detect
Browse files Browse the repository at this point in the history
Detect node with module.require
  • Loading branch information
jdegoes committed Aug 6, 2015
2 parents db63471 + 119f01e commit e46c526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Network/HTTP/Affjax.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// jshint maxparams: 5
exports._ajax = function (mkHeader, options, canceler, errback, callback) {
var platformSpecific = { };
if (typeof module !== "undefined" && module.exports) {
if (typeof module !== "undefined" && module.require) {
// We are on node.js
platformSpecific.newXHR = function () {
var XHR = module.require("xmlhttprequest").XMLHttpRequest;
Expand Down

0 comments on commit e46c526

Please sign in to comment.