Skip to content

Commit

Permalink
fix: showing certificate dialog with no window
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Jun 12, 2020
1 parent 7274467 commit 6d8fd73
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/browser/api/dialog.js
Expand Up @@ -249,7 +249,11 @@ module.exports = {
},

showCertificateTrustDialog: function (window, options) {
if (window && window.constructor !== BrowserWindow) options = window;
if (window && window.constructor !== BrowserWindow) {
options = window;
window = null;
}

if (options == null || typeof options !== 'object') {
throw new TypeError('options must be an object');
}
Expand Down

0 comments on commit 6d8fd73

Please sign in to comment.