mirror of
https://github.com/HackPlan/atom-shell.git
synced 2026-04-24 03:46:03 +08:00
Mention in doc that crash-reporter is available for renderer.
This commit is contained in:
22
docs/api/common/crash-reporter.md
Normal file
22
docs/api/common/crash-reporter.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# crash-reporter
|
||||
|
||||
An example of automatically submitting crash reporters to remote server:
|
||||
|
||||
```javascript
|
||||
crashReporter = require('crash-reporter');
|
||||
crashReporter.setCompanyName('YourCompany');
|
||||
crashReporter.setSubmissionUrl('https://your-domain.com/url-to-submit');
|
||||
crashReporter.setAutoSubmit(true);
|
||||
```
|
||||
|
||||
## crashReporter.setCompanyName(company)
|
||||
|
||||
* `company` String
|
||||
|
||||
## crashReporter.setSubmissionUrl(url)
|
||||
|
||||
* `url` String
|
||||
|
||||
## crashReporter.setAutoSubmit(is)
|
||||
|
||||
* `is` Boolean
|
||||
Reference in New Issue
Block a user