From: Cheng Zhao Date: Mon, 5 Jan 2015 05:56:45 +0000 (-0800) Subject: docs: Document dialog.showErrorBox, fixes #909 X-Git-Tag: v0.20.4~7 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=7abb08cc255b0182b4d8720e28c081ee53a8609c;p=electron.git docs: Document dialog.showErrorBox, fixes #909 --- diff --git a/docs/api/dialog.md b/docs/api/dialog.md index 9c1f1c8a..14960f3f 100644 --- a/docs/api/dialog.md +++ b/docs/api/dialog.md @@ -83,3 +83,10 @@ the index of the clicked button. If a `callback` is passed, the API call would be asynchronous and the result would be passed via `callback(response)` + +## dialog.showErrorBox(title, content) + +Runs a modal dialog that shows an error message. + +This API can be called safely before the `ready` event of `app` module emits, it +is usually used to report errors in early stage of startup.