Use crashesDirectory in example

This commit is contained in:
Kevin Sawicki 2017-01-24 14:07:00 -08:00 committed by GitHub
parent 4985e073c4
commit 108a3473ed

View file

@ -57,14 +57,14 @@ along with an additional one called `crashesDirectory` that should point to a di
reports temporarily. You can test this out by calling `process.crash()` to crash the child process. reports temporarily. You can test this out by calling `process.crash()` to crash the child process.
**Note:** To collect crash reports from child process in Windows, you need to add this extra code as well. **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` This will start the process that will monitor and send the crash reports. Replace `submitURL`, `productName`
with appropriate values. and `crashesDirectory` with appropriate values.
```js ```js
const args = [ const args = [
'--reporter-url=' + submitURL, '--reporter-url=' + submitURL,
'--application-name=' + productName, '--application-name=' + productName,
'--crashes-directory=' + tmpPath '--crashes-directory=' + crashesDirectory
] ]
const env = { const env = {
ELECTRON_INTERNAL_CRASH_SERVICE: 1 ELECTRON_INTERNAL_CRASH_SERVICE: 1