Make browser window optional
This commit is contained in:
parent
2749ded062
commit
2e32525e8f
2 changed files with 8 additions and 3 deletions
|
@ -282,7 +282,9 @@ module.exports = {
|
|||
return binding.showErrorBox(...args)
|
||||
},
|
||||
|
||||
showCertificateTrustDialog: function (window, options, callback) {
|
||||
showCertificateTrustDialog: function (...args) {
|
||||
let [window, options, callback] = parseArgs(...args)
|
||||
|
||||
if (options == null || typeof options !== 'object') {
|
||||
throw new TypeError('options must be an object')
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue