aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-01-09 19:44:11 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-01-09 19:44:11 +0800
commitc9015e2e04729a06cbcfd650ebfb0c1e71d96ce3 (patch)
treec2cfb0442ae65cb102e666e1a88d89312e933d35
parent07fba274b1d5da40b0fbe58263d6c3dc5ed6fa6e (diff)
downloaddexon-c9015e2e04729a06cbcfd650ebfb0c1e71d96ce3.tar.gz
dexon-c9015e2e04729a06cbcfd650ebfb0c1e71d96ce3.tar.zst
dexon-c9015e2e04729a06cbcfd650ebfb0c1e71d96ce3.zip
module var fix
-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;