paypro: fix trusted check.

This commit is contained in:
Christopher Jeffrey 2014-08-01 14:39:24 -07:00 committed by Manuel Araoz
parent 438820ef23
commit f77d3bc350
1 changed files with 1 additions and 1 deletions

View File

@ -872,7 +872,7 @@ Wallet.prototype.receivePaymentRequest = function(options, pr, cb) {
var der = cert.toString('hex');
var pem = PayPro.prototype._DERtoPEM(der, 'CERTIFICATE');
return PayPro.RootCerts.getTrusted(pem);
});
}).filter(Boolean);
if (!trusted.length) {
if (typeof SSL_UNTRUSTED === 'undefined') {