aboutsummaryrefslogtreecommitdiffstats
path: root/lib/httprpc.js
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2014-12-22 08:13:49 +0800
committerGav Wood <i@gavwood.com>2014-12-22 08:13:49 +0800
commit123098ce79562be0d4ce87e15bcebe6a970f1ff6 (patch)
treefba808e0bf433cc209c7554f5aed744813a71574 /lib/httprpc.js
parente9db2d1b1877bdf49cb76de46849a1426ded288c (diff)
downloaddexon-123098ce79562be0d4ce87e15bcebe6a970f1ff6.tar
dexon-123098ce79562be0d4ce87e15bcebe6a970f1ff6.tar.gz
dexon-123098ce79562be0d4ce87e15bcebe6a970f1ff6.tar.bz2
dexon-123098ce79562be0d4ce87e15bcebe6a970f1ff6.tar.lz
dexon-123098ce79562be0d4ce87e15bcebe6a970f1ff6.tar.xz
dexon-123098ce79562be0d4ce87e15bcebe6a970f1ff6.tar.zst
dexon-123098ce79562be0d4ce87e15bcebe6a970f1ff6.zip
Lots of fixes.
Diffstat (limited to 'lib/httprpc.js')
-rw-r--r--lib/httprpc.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/httprpc.js b/lib/httprpc.js
index 8141a6bae..ee6b5c307 100644
--- a/lib/httprpc.js
+++ b/lib/httprpc.js
@@ -21,9 +21,11 @@
* @date 2014
*/
-if (process.env.NODE_ENV !== "build") {
+// TODO: work out which of the following two lines it is supposed to be...
+//if (process.env.NODE_ENV !== 'build') {
+if ("build" !== "build") {/*
var XMLHttpRequest = require('xmlhttprequest').XMLHttpRequest; // jshint ignore:line
-}
+*/}
var HttpRpcProvider = function (host) {
this.handlers = [];