diff options
author | Gav Wood <i@gavwood.com> | 2014-12-22 08:13:49 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2014-12-22 08:13:49 +0800 |
commit | 123098ce79562be0d4ce87e15bcebe6a970f1ff6 (patch) | |
tree | fba808e0bf433cc209c7554f5aed744813a71574 /lib/httprpc.js | |
parent | e9db2d1b1877bdf49cb76de46849a1426ded288c (diff) | |
download | dexon-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.js | 6 |
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 = []; |