mirror of https://github.com/BTCPrivate/copay.git
fixing build.js one error at a time 5
This commit is contained in:
parent
a731ebd013
commit
2725b7f6e1
|
@ -19,7 +19,11 @@ CryptoJS.AES.decrypt = function(a) {
|
|||
'use strict';
|
||||
var chai = chai || require('chai');
|
||||
var should = chai.should();
|
||||
var copay = copay || require('../copay');
|
||||
try {
|
||||
var copay = require('copay'); //browser
|
||||
} catch (e) {
|
||||
var copay = require('../copay'); //node
|
||||
}
|
||||
var LocalEncrypted = copay.StorageLocalEncrypted;
|
||||
|
||||
var fakeWallet = 'fake-wallet-id';
|
||||
|
|
Loading…
Reference in New Issue