diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-01-09 19:43:45 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-01-09 19:43:45 +0800 |
commit | 07fba274b1d5da40b0fbe58263d6c3dc5ed6fa6e (patch) | |
tree | b4977d049b0b2eed0e56de4841f6a39952577f5b | |
parent | 807ec60e63e54f648bea47037c307b63d1bc6c04 (diff) | |
download | go-tangerine-07fba274b1d5da40b0fbe58263d6c3dc5ed6fa6e.tar.gz go-tangerine-07fba274b1d5da40b0fbe58263d6c3dc5ed6fa6e.tar.zst go-tangerine-07fba274b1d5da40b0fbe58263d6c3dc5ed6fa6e.zip |
module var fix
-rw-r--r-- | lib/websocket.js | 3 |
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; |