mirror of https://github.com/BTCPrivate/copay.git
paypro: fix trusted check.
This commit is contained in:
parent
438820ef23
commit
f77d3bc350
|
@ -872,7 +872,7 @@ Wallet.prototype.receivePaymentRequest = function(options, pr, cb) {
|
||||||
var der = cert.toString('hex');
|
var der = cert.toString('hex');
|
||||||
var pem = PayPro.prototype._DERtoPEM(der, 'CERTIFICATE');
|
var pem = PayPro.prototype._DERtoPEM(der, 'CERTIFICATE');
|
||||||
return PayPro.RootCerts.getTrusted(pem);
|
return PayPro.RootCerts.getTrusted(pem);
|
||||||
});
|
}).filter(Boolean);
|
||||||
|
|
||||||
if (!trusted.length) {
|
if (!trusted.length) {
|
||||||
if (typeof SSL_UNTRUSTED === 'undefined') {
|
if (typeof SSL_UNTRUSTED === 'undefined') {
|
||||||
|
|
Loading…
Reference in New Issue