chore: replace usage of deprecated beginSheetModalForWindow API (#16994)

This commit is contained in:
Samuel Attard 2019-02-27 10:23:17 -08:00 committed by GitHub
parent 1bbb47be5b
commit e01c3615c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 65 deletions

View file

@ -171,7 +171,7 @@ It returns the index of the clicked button.
The `browserWindow` argument allows the dialog to attach itself to a parent window, making it modal.
If a `callback` is passed, the dialog will not block the process. The API call
If the `callback` and `browserWindow` arguments are passed, the dialog will not block the process. The API call
will be asynchronous and the result will be passed via `callback(response)`.
### `dialog.showErrorBox(title, content)`