mirror of
https://github.com/electron/electron.git
synced 2026-01-10 07:58:08 -05:00
Add API to set product name for crash reporter.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user