implemented the reporter side of crash reporting
This commit is contained in:
parent
6ca7811342
commit
6a03ceb011
|
@ -0,0 +1,20 @@
|
|||
var electron = require('electron');
|
||||
|
||||
// This file should be included from the main thread and every renderer thread.
|
||||
// Note that the reporter is only half of the equation. A server listening for
|
||||
// the reports is also required.
|
||||
//
|
||||
// The config is currently set up to report to a locally running instance of
|
||||
// https://github.com/electron/mini-breakpad-server.
|
||||
// Setup instructions on that page are fairly simple, though I don't know what the
|
||||
// breakpad symbols parts means and I didn't use it to initially test this feature.
|
||||
// If you want to force a crash for testing call `process.crash`
|
||||
|
||||
electron.crashReporter.start({
|
||||
companyName: 'Daplie Labs',
|
||||
productName: 'Electron Demo',
|
||||
submitURL: 'http://localhost:1127/post',
|
||||
extra: {
|
||||
prop: 'some string value',
|
||||
},
|
||||
});
|
|
@ -4,6 +4,7 @@
|
|||
<meta charset="UTF-8">
|
||||
</head>
|
||||
<body>
|
||||
<script>require('./crash-reporter')</script>
|
||||
<script>require('./notifications')</script>
|
||||
<script>require('./drag-drop-render')</script>
|
||||
|
||||
|
|
2
index.js
2
index.js
|
@ -4,6 +4,8 @@ var BrowserWindow = electron.BrowserWindow;
|
|||
var path = require('path');
|
||||
var url = require('url');
|
||||
|
||||
require('./crash-reporter');
|
||||
|
||||
// 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 win;
|
||||
|
|
Loading…
Reference in New Issue