diff options
Diffstat (limited to 'lib/httprpc.js')
-rw-r--r-- | lib/httprpc.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/httprpc.js b/lib/httprpc.js index 1968caa98..c1ee0f02a 100644 --- a/lib/httprpc.js +++ b/lib/httprpc.js @@ -21,8 +21,9 @@ * @date 2014 */ - -var XMLHttpRequest = require('xmlhttprequest').XMLHttpRequest; // jshint ignore:line +if(process.env.NODE_ENV !== "build") { + var XMLHttpRequest = require('xmlhttprequest').XMLHttpRequest; // jshint ignore:line +} var HttpRpcProvider = function (host) { |