|
@@ -227,7 +227,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');
|
|
|
}
|