Add API to set product name for crash reporter.
This commit is contained in:
parent
e7d25385b0
commit
a6989847ea
5 changed files with 27 additions and 3 deletions
|
@ -4,11 +4,16 @@ An example of automatically submitting crash reporters to remote server:
|
|||
|
||||
```javascript
|
||||
crashReporter = require('crash-reporter');
|
||||
crashReporter.setProductName('YourName');
|
||||
crashReporter.setCompanyName('YourCompany');
|
||||
crashReporter.setSubmissionUrl('https://your-domain.com/url-to-submit');
|
||||
crashReporter.setAutoSubmit(true);
|
||||
```
|
||||
|
||||
## crashReporter.setProductName(product)
|
||||
|
||||
* `product` String
|
||||
|
||||
## crashReporter.setCompanyName(company)
|
||||
|
||||
* `company` String
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue