]> khamidou — GitHub mirrors - electron.git/commitdiff
Fixed and clarified crash-reporter documentation
authorTom Moor <tom.moor@gmail.com>
Fri, 3 Jul 2015 18:34:36 +0000 (11:34 -0700)
committerTom Moor <tom.moor@gmail.com>
Fri, 3 Jul 2015 18:34:36 +0000 (11:34 -0700)
It was unclear to us until we looked through the atom source code that crashReporter.start must be ran in each renderer process

docs/api/crash-reporter.md

index 2064f20f39516e9087df51e87d58152a0caece49..ec937e5252a51bcc0b4c8b8c10f37c5e2d3dadd1 100644 (file)
@@ -1,6 +1,6 @@
 # crash-reporter
 
-An example of automatically submitting crash reporters to remote server:
+An example of automatically submitting crash reporters to a remote server:
 
 ```javascript
 crashReporter = require('crash-reporter');
@@ -24,20 +24,20 @@ crashReporter.start({
   * `ignoreSystemCrashHandler` Boolean, default: false
   * `extra` Object
     * An object you can define which content will be send along with the report.
-    * Only string properties are send correctly.
+    * Only string properties are sent correctly.
     * Nested objects are not supported.
 
-Developers are required to call the API before using other crashReporter APIs.
+Developers are required to call this method 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
-main process, even you only collect crash report in renderer process.
+you are required to call `crashReporter.start` API to initialize `crashpad` in
+main process and in each renderer process that you wish to collect crash reports.
 
 ## crashReporter.getLastCrashReport()
 
-Returns the date and ID of last crash report, when there was no crash report
+Returns the date and ID of the last crash report, when there was no crash report
 sent or the crash reporter is not started, `null` will be returned.
 
 ## crashReporter.getUploadedReports()