]> khamidou — GitHub mirrors - electron.git/commitdiff
:memo: Add getUploadedReports API doc.
authorHaojian Wu <hokein.wu@gmail.com>
Fri, 5 Jun 2015 11:05:55 +0000 (19:05 +0800)
committerHaojian Wu <hokein.wu@gmail.com>
Fri, 5 Jun 2015 11:05:55 +0000 (19:05 +0800)
docs/api/crash-reporter.md

index d867f77ce398498cf1a819da2dcd19c5fbc75daf..2064f20f39516e9087df51e87d58152a0caece49 100644 (file)
@@ -27,6 +27,9 @@ crashReporter.start({
     * Only string properties are send correctly.
     * Nested objects are not supported.
 
+Developers are required to call the API before using other crashReporter APIs.
+
+
 **Note:** On OS X, electron uses a new `crashpad` client, which is different
 with the `breakpad` on Windows and Linux. To enable crash collection feature,
 you are required to call `crashReporter.start` API to initiliaze `crashpad` in
@@ -37,6 +40,10 @@ main process, even you only collect crash report in renderer process.
 Returns the date and ID of last crash report, when there was no crash report
 sent or the crash reporter is not started, `null` will be returned.
 
+## crashReporter.getUploadedReports()
+
+Returns all uploaded crash reports, each report contains date and uploaded ID.
+
 # crash-reporter payload
 
 The crash reporter will send the following data to the `submitUrl` as `POST`: