Capitalize Electron, fence as JS
This commit is contained in:
parent
dc5129f32e
commit
7b03c05b4e
1 changed files with 3 additions and 2 deletions
|
@ -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.
|
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.
|
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
|
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
|
along with an additional one called `crashesDirectory` that should point to a directory to store the crash
|
||||||
reports temporarily.
|
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.
|
**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` and `tmpPath`
|
||||||
with appropriate values.
|
with appropriate values.
|
||||||
```
|
|
||||||
|
```js
|
||||||
const args = [
|
const args = [
|
||||||
'--reporter-url=' + submitURL,
|
'--reporter-url=' + submitURL,
|
||||||
'--application-name=' + productName,
|
'--application-name=' + productName,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue