aboutsummaryrefslogtreecommitdiffstats
path: root/lib/autoprovider.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/autoprovider.js
parente9db2d1b1877bdf49cb76de46849a1426ded288c (diff)
downloadgo-tangerine-123098ce79562be0d4ce87e15bcebe6a970f1ff6.tar
go-tangerine-123098ce79562be0d4ce87e15bcebe6a970f1ff6.tar.gz
go-tangerine-123098ce79562be0d4ce87e15bcebe6a970f1ff6.tar.bz2
go-tangerine-123098ce79562be0d4ce87e15bcebe6a970f1ff6.tar.lz
go-tangerine-123098ce79562be0d4ce87e15bcebe6a970f1ff6.tar.xz
go-tangerine-123098ce79562be0d4ce87e15bcebe6a970f1ff6.tar.zst
go-tangerine-123098ce79562be0d4ce87e15bcebe6a970f1ff6.zip
Lots of fixes.
Diffstat (limited to 'lib/autoprovider.js')
-rw-r--r--lib/autoprovider.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/autoprovider.js b/lib/autoprovider.js
index 735f56349..bfbc3ab6e 100644
--- a/lib/autoprovider.js
+++ b/lib/autoprovider.js
@@ -26,10 +26,13 @@
* if not tries to connect over websockets
* if it fails, it uses HttpRpcProvider
*/
-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 WebSocket = require('ws'); // jshint ignore:line
var web3 = require('./main.js'); // jshint ignore:line
-}
+*/}
var AutoProvider = function (userOptions) {
if (web3.haveProvider()) {