Skip to content

Commit

Permalink
Avoid certificate checks when loading localhost
Browse files Browse the repository at this point in the history
Helps with testing, since the webpack dev server uses a self-signed
certificate.
  • Loading branch information
saghul authored and hristoterezov committed Mar 28, 2017
1 parent a2799ad commit e527b13
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,16 @@ function setAPPListeners () {
createJitsiMeetWindow();
}
});
APP.on('certificate-error',
(event, webContents, url, error, certificate, callback) => {
if (url.startsWith('https://localhost')) {
event.preventDefault();
callback(true);
} else {
callback(false);
}
}
);
}

/**
Expand Down

0 comments on commit e527b13

Please sign in to comment.