fixing index.html and karma tests

This commit is contained in:
Manuel Araoz 2014-08-14 11:51:56 -04:00
commit e857e34b1d
5 changed files with 21 additions and 5 deletions

View file

@ -5,7 +5,12 @@ var is_browser = typeof process == 'undefined'
var bitcore = bitcore || require('bitcore');
var Buffer = bitcore.Buffer;
var PayPro = bitcore.PayPro;
var Wallet = require('../../js/models/core/Wallet');
try {
var copay = require('copay'); //browser
} catch (e) {
var copay = require('../../copay'); //node
}
var Wallet = copay.Wallet;
var x509 = {
priv: ''