]> khamidou — GitHub mirrors - electron.git/commitdiff
docs: Document dialog.showErrorBox, fixes #909
authorCheng Zhao <zcbenz@gmail.com>
Mon, 5 Jan 2015 05:56:45 +0000 (21:56 -0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 5 Jan 2015 05:56:45 +0000 (21:56 -0800)
docs/api/dialog.md

index 9c1f1c8addb50188403d257169bd6782ca5a2e5a..14960f3f19454aa4daf82012d8d756bca167f512 100644 (file)
@@ -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.