Skip to content

Commit

Permalink
docs: explicitly allow string for MessageBoxOptions.icon (electron#32422
Browse files Browse the repository at this point in the history
)

Fixes electron#32390. See electron#19782 for context.
  • Loading branch information
ckerr authored and t57ser committed Jan 25, 2022
1 parent 69e82f2 commit bb9a577
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/dialog.md
Expand Up @@ -285,7 +285,7 @@ If `browserWindow` is not shown dialog will not be attached to it. In such case
include a checkbox with the given label.
* `checkboxChecked` boolean (optional) - Initial checked state of the
checkbox. `false` by default.
* `icon` [NativeImage](native-image.md) (optional)
* `icon` ([NativeImage](native-image.md) | string) (optional)
* `textWidth` Integer (optional) _macOS_ - Custom width of the text in the message box.
* `cancelId` Integer (optional) - The index of the button to be used to cancel the dialog, via
the `Esc` key. By default this is assigned to the first button with "cancel" or "no" as the
Expand Down

0 comments on commit bb9a577

Please sign in to comment.