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

580 B

crash-reporter

An example of automatically submitting crash reporters to remote server:

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

crashReporter.setSubmissionUrl(url)

  • url String

crashReporter.setAutoSubmit(is)

  • is Boolean