aboutsummaryrefslogtreecommitdiffstats
path: root/lib/httpsync.js
diff options
context:
space:
mode:
authorMarek Kotewicz <marek.kotewicz@gmail.com>2015-01-27 16:36:39 +0800
committerMarek Kotewicz <marek.kotewicz@gmail.com>2015-01-27 16:36:39 +0800
commit1f5a6f13419415b4c05519e126eedcdf815aff7c (patch)
treede2d9551d3746ab3e4c8c38501ae0a1b6eac09d5 /lib/httpsync.js
parentd223ac0379c4c1f8c209e777ec9ed63384590157 (diff)
parentda4c2d530d6f9b8ba54221c6812f77766a33fed6 (diff)
downloadgo-tangerine-1f5a6f13419415b4c05519e126eedcdf815aff7c.tar
go-tangerine-1f5a6f13419415b4c05519e126eedcdf815aff7c.tar.gz
go-tangerine-1f5a6f13419415b4c05519e126eedcdf815aff7c.tar.bz2
go-tangerine-1f5a6f13419415b4c05519e126eedcdf815aff7c.tar.lz
go-tangerine-1f5a6f13419415b4c05519e126eedcdf815aff7c.tar.xz
go-tangerine-1f5a6f13419415b4c05519e126eedcdf815aff7c.tar.zst
go-tangerine-1f5a6f13419415b4c05519e126eedcdf815aff7c.zip
Merge branch 'develop' into cpp
Conflicts: dist/ethereum.js.map dist/ethereum.min.js
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';