fix: showing certificate dialog with no window (#24091)
This commit is contained in:
parent
379bb174e9
commit
b9ac334efc
1 changed files with 5 additions and 1 deletions
|
@ -249,7 +249,11 @@ module.exports = {
|
||||||
},
|
},
|
||||||
|
|
||||||
showCertificateTrustDialog: function (window, options) {
|
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') {
|
if (options == null || typeof options !== 'object') {
|
||||||
throw new TypeError('options must be an object');
|
throw new TypeError('options must be an object');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue