Add API to set product name for crash reporter.

This commit is contained in:
Cheng Zhao 2013-11-13 19:12:13 +08:00
parent e7d25385b0
commit a6989847ea
5 changed files with 27 additions and 3 deletions

View file

@ -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