fixing build.js one error at a time 5

This commit is contained in:
Manuel Araoz 2014-08-14 11:19:50 -04:00
parent a731ebd013
commit 2725b7f6e1
1 changed files with 5 additions and 1 deletions

View File

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