We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13d264f commit 46f6a53Copy full SHA for 46f6a53
app/lib/methods/helpers/sslPinning.ts
@@ -79,11 +79,11 @@ const RCSSLPinning = Platform.select({
79
}),
80
setCertificate: (name: string, server: string) => {
81
if (name) {
82
- let certificate = UserPreferences.getMap(name) as ICertificate;
83
- if (!certificate.path.match(extractFileScheme(documentDirectory!))) {
84
- certificate = persistCertificate(server, name, certificate.password);
+ const certificate = UserPreferences.getMap(name) as ICertificate;
+ if (certificate) {
+ persistCertificate(server, name, certificate.password);
85
+ SSLPinning?.setCertificate(server, certificate.path, certificate.password);
86
}
- SSLPinning?.setCertificate(server, certificate.path, certificate.password);
87
88
},
89
removeCertificate
0 commit comments