This commit is contained in:
Marek Kotewicz 2015-01-09 12:57:03 +01:00
commit a5907a8239
2 changed files with 4 additions and 2 deletions

View File

@ -505,4 +505,5 @@ function messageHandler(data) {
} }
} }
module.exports = web3; if (typeof(module) !== "undefined")
module.exports = web3;

View File

@ -74,4 +74,5 @@ Object.defineProperty(WebSocketProvider.prototype, "onmessage", {
set: function(provider) { this.onMessage(provider); } set: function(provider) { this.onMessage(provider); }
}); });
module.exports = WebSocketProvider; if (typeof(module) !== "undefined")
module.exports = WebSocketProvider;