Skip to content

Commit

Permalink
Fix: import empty certificate path
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonatas Evaristo committed Sep 25, 2023
1 parent 69508d1 commit 98b6de5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/mainAppWindow/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ exports.onAppSecondInstance = function onAppSecondInstance(event, args) {
function applyAppConfiguration(config, window) {
applySpellCheckerConfiguration(config.spellCheckerLanguages, window);

if (typeof config.clientCertPath !== 'undefined') {
if (typeof config.clientCertPath !== 'undefined' && config.clientCertPath !== '') {
app.importCertificate({ certificate: config.clientCertPath, password: config.clientCertPassword }, (result) => {
logger.info('Loaded certificate: ' + config.clientCertPath + ', result: ' + result);
});
Expand Down

0 comments on commit 98b6de5

Please sign in to comment.