aboutsummaryrefslogtreecommitdiffstats
path: root/lib/web3.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/web3.js')
-rw-r--r--lib/web3.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/web3.js b/lib/web3.js
index b240bdae2..9a85c4d1b 100644
--- a/lib/web3.js
+++ b/lib/web3.js
@@ -505,4 +505,5 @@ function messageHandler(data) {
}
}
-module.exports = web3;
+if (typeof(module) !== "undefined")
+ module.exports = web3;