12 lines
333 B
JavaScript
12 lines
333 B
JavaScript
var assert = require('assert');
|
|
|
|
function getEthers(filename) {
|
|
var ethers = global.ethers
|
|
if (!ethers) { return undefined; }
|
|
console.log('Using global ethers; ' + filename);
|
|
assert.equal(ethers.platform, 'browser', 'platform: ' + ethers.platform + ' != "brwoser"');
|
|
return ethers;
|
|
}
|
|
|
|
module.exports = getEthers;
|