You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
543 B
17 lines
543 B
10 years ago
|
/* jshint ignore:start */
|
||
|
|
||
10 years ago
|
|
||
|
// Browser environment
|
||
|
if(typeof window !== 'undefined') {
|
||
|
web3 = (typeof window.web3 !== 'undefined') ? window.web3 : require('web3');
|
||
|
BigNumber = (typeof window.BigNumber !== 'undefined') ? window.BigNumber : require('bignumber.js');
|
||
|
}
|
||
|
|
||
|
|
||
|
// Node environment
|
||
|
if(typeof global !== 'undefined') {
|
||
|
web3 = (typeof global.web3 !== 'undefined') ? global.web3 : require('web3');
|
||
|
BigNumber = (typeof global.BigNumber !== 'undefined') ? global.BigNumber : require('bignumber.js');
|
||
10 years ago
|
}
|
||
|
|
||
|
/* jshint ignore:end */
|