Use an options object for most of the params

This commit is contained in:
joshaber 2017-04-03 21:33:21 -04:00
parent 2badfbe04f
commit e2bda3ca0f
2 changed files with 21 additions and 5 deletions

View file

@ -175,11 +175,12 @@ it is usually used to report errors in early stage of startup. If called
before the app `ready`event on Linux, the message will be emitted to stderr,
and no GUI dialog will appear.
### `dialog.showCertificateTrustDialog(browserWindow, certificate, message, callback)` _macOS_
### `dialog.showCertificateTrustDialog(browserWindow, options, callback)` _macOS_
* `browserWindow` BrowserWindow
* `certificate` [Certificate](structures/certificate.md) - The certificate to trust/import.
* `message` String - The message to display to the user.
* `options` Object
* `certificate` [Certificate](structures/certificate.md) - The certificate to trust/import.
* `message` String - The message to display to the user.
* `callback` Function
* `result` Boolean - Whether the user chose to cancel or continue.