]> khamidou — GitHub mirrors - electron.git/commitdiff
docs: crashRepoter.getLastCrashReport
authorCheng Zhao <zcbenz@gmail.com>
Tue, 11 Nov 2014 12:20:36 +0000 (20:20 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 11 Nov 2014 12:20:36 +0000 (20:20 +0800)
docs/api/crash-reporter.md

index 233dd1f1d619ce4eff5b2cc12a6a7f10bb5f5cee..3d0cf5467b8299ae1f068ae677f0cf6ed508b40a 100644 (file)
@@ -27,6 +27,11 @@ crashReporter.start({
     * Only string properties are send correctly.
     * Nested objects are not supported.
 
+## crashReporter.getLastCrashReport()
+
+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.
+
 # crash-reporter payload
 
 The crash reporter will send the following data to the `submitUrl` as `POST`: