aboutsummaryrefslogtreecommitdiffstats
path: root/lib/httpsync.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/httpsync.js')
-rw-r--r--lib/httpsync.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/httpsync.js b/lib/httpsync.js
index 67a3988f9..a638cfe94 100644
--- a/lib/httpsync.js
+++ b/lib/httpsync.js
@@ -21,6 +21,10 @@
* @date 2014
*/
+if (process.env.NODE_ENV !== 'build') {
+ var XMLHttpRequest = require('xmlhttprequest').XMLHttpRequest; // jshint ignore:line
+}
+
var HttpSyncProvider = function (host) {
this.handlers = [];
this.host = host || 'http://localhost:8080';