fix: don't assign NSAlert to window which is not visible (#23090)

This commit is contained in:
trop[bot]
2020-04-16 20:25:47 -07:00
committed by GitHub
parent fe5af34acc
commit ff6e411973
2 changed files with 5 additions and 2 deletions

View File

@@ -269,6 +269,7 @@ Shows a message box, it will block the process until the message box is closed.
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 `browserWindow` is not shown dialog will not be attached to it. In such case It will be displayed as independed window.
### `dialog.showMessageBox([browserWindow, ]options)`