electron/docs/api/browser/crash-reporter.md

23 lines
476 B
Markdown
Raw Normal View History

2013-09-09 07:35:57 +00:00
# crash-reporter
2013-08-14 22:43:35 +00:00
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