Make browser window optional

This commit is contained in:
Kevin Sawicki 2017-04-04 10:49:10 -07:00
parent 2749ded062
commit 2e32525e8f
2 changed files with 8 additions and 3 deletions

View file

@ -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')
}