module var fix

This commit is contained in:
Jeffrey Wilcke 2015-01-09 12:43:45 +01:00
parent 807ec60e63
commit 07fba274b1

View File

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