module var fix

This commit is contained in:
Jeffrey Wilcke 2015-01-09 12:43:45 +01:00
parent 807ec60e63
commit 07fba274b1
1 changed files with 2 additions and 1 deletions

View File

@ -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;