Merge pull request #3826 from atom/remote-crash-reporting-defaults
Require submitURL and companyName options to crashReporter.start
This commit is contained in:
commit
2b4e6080a8
14 changed files with 27 additions and 38 deletions
|
@ -25,8 +25,8 @@ The `crash-reporter` module has the following methods:
|
|||
`options` Object, properties:
|
||||
|
||||
* `productName` String, default: Electron.
|
||||
* `companyName` String, default: GitHub, Inc.
|
||||
* `submitURL` String, default: http://54.249.141.255:1127/post.
|
||||
* `companyName` String (**required**)
|
||||
* `submitURL` String, (**required**)
|
||||
* URL that crash reports will be sent to as POST.
|
||||
* `autoSubmit` Boolean, default: `true`.
|
||||
* Send the crash report without user interaction.
|
||||
|
|
|
@ -84,9 +84,6 @@ const electron = require('electron');
|
|||
const app = electron.app; // Module to control application life.
|
||||
const BrowserWindow = electron.BrowserWindow; // Module to create native browser window.
|
||||
|
||||
// Report crashes to our server.
|
||||
electron.crashReporter.start();
|
||||
|
||||
// Keep a global reference of the window object, if you don't, the window will
|
||||
// be closed automatically when the JavaScript object is garbage collected.
|
||||
var mainWindow = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue