2013-09-09 15:35:57 +08:00
|
|
|
# crash-reporter
|
2013-08-14 15:43:35 -07:00
|
|
|
|
|
|
|
An example of automatically submitting crash reporters to remote server:
|
|
|
|
|
|
|
|
```javascript
|
|
|
|
crashReporter = require('crash-reporter');
|
2013-11-14 13:39:44 +08:00
|
|
|
crashReporter.start({
|
|
|
|
productName: 'YourName',
|
|
|
|
companyName: 'YourCompany',
|
|
|
|
submitUrl: 'https://your-domain.com/url-to-submit',
|
|
|
|
autoSubmit: true
|
|
|
|
});
|
2013-08-14 15:43:35 -07:00
|
|
|
```
|
|
|
|
|
2013-11-14 13:39:44 +08:00
|
|
|
## crashReporter.start(options)
|
2013-11-13 19:12:13 +08:00
|
|
|
|
2013-11-14 13:39:44 +08:00
|
|
|
* `options` Object
|
|
|
|
* `productName` String
|
|
|
|
* `companyName` String
|
|
|
|
* `submitUrl` String - URL that crash reports would be sent to
|
|
|
|
* `autoSubmit` Boolean - Send the crash report without user interaction
|
|
|
|
* `ignoreSystemCrashHandler` Boolean
|