diff --git a/docs/api/crash-reporter.md b/docs/api/crash-reporter.md index 3398ba54e00..daaaae823b1 100644 --- a/docs/api/crash-reporter.md +++ b/docs/api/crash-reporter.md @@ -51,7 +51,7 @@ You are required to call this method before using any other `crashReporter` APIs and in each process (main/renderer) from which you want to collect crash reports. You can pass different options to `crashReporter.start` when calling from different processes. -**Note** Child processes created via the `child_process` module will not have access to the electron modules. +**Note** Child processes created via the `child_process` module will not have access to the Electron modules. Therefore, to collect crash reports from them, use `process.crashReporter.start` instead. Pass the same options as above along with an additional one called `crashesDirectory` that should point to a directory to store the crash reports temporarily. @@ -59,7 +59,8 @@ reports temporarily. **Note:** To collect crash reports from child process in Windows, you need to add this extra code as well. This will start the process that will monitor and send the crash reports. Replace `submitURL`, `productName` and `tmpPath` with appropriate values. -``` + +```js const args = [ '--reporter-url=' + submitURL, '--application-name=' + productName,