module var fix

This commit is contained in:
Jeffrey Wilcke 2015-01-09 12:44:11 +01:00
parent 07fba274b1
commit c9015e2e04
1 changed files with 2 additions and 1 deletions

View File

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