aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-01-09 19:43:45 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-01-09 19:43:45 +0800
commit07fba274b1d5da40b0fbe58263d6c3dc5ed6fa6e (patch)
treeb4977d049b0b2eed0e56de4841f6a39952577f5b
parent807ec60e63e54f648bea47037c307b63d1bc6c04 (diff)
downloadgo-tangerine-07fba274b1d5da40b0fbe58263d6c3dc5ed6fa6e.tar.gz
go-tangerine-07fba274b1d5da40b0fbe58263d6c3dc5ed6fa6e.tar.zst
go-tangerine-07fba274b1d5da40b0fbe58263d6c3dc5ed6fa6e.zip
module var fix
-rw-r--r--lib/websocket.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/websocket.js b/lib/websocket.js
index ddb44aed5..5b40075e4 100644
--- a/lib/websocket.js
+++ b/lib/websocket.js
@@ -74,4 +74,5 @@ Object.defineProperty(WebSocketProvider.prototype, "onmessage", {
set: function(provider) { this.onMessage(provider); }
});
-module.exports = WebSocketProvider;
+if (typeof(module) !== "undefined")
+ module.exports = WebSocketProvider;