Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

don't use browser/xhr

  • Loading branch information...
commit f0fb6870587b2f5bb3a895addd920703ac78f14e 1 parent ef60c3a
@kriszyp authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 lib/jsgi-client.js
View
5 lib/jsgi-client.js
@@ -1,10 +1,7 @@
/**
* HTTP Client using the JSGI standard objects
*/
-var defer = require("commonjs-utils/promise").defer;
-if (typeof XMLHttpRequest === "undefined") {
- XMLHttpRequest = require("browser/xhr").XMLHttpRequest;
-}
+var defer = require("promised-io/promise").defer;
exports.request = function(request){
var xhr = new XMLHttpRequest();
Please sign in to comment.
Something went wrong with that request. Please try again.