From bb9a577eed653d1c4e9c7f64634121a74b87dc46 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Wed, 12 Jan 2022 19:30:15 -0600 Subject: [PATCH] docs: explicitly allow string for MessageBoxOptions.icon (#32422) Fixes #32390. See #19782 for context. --- docs/api/dialog.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/dialog.md b/docs/api/dialog.md index 90eed112c92df..bc536e15baee1 100644 --- a/docs/api/dialog.md +++ b/docs/api/dialog.md @@ -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