19 lines
No EOL
526 B
JavaScript
19 lines
No EOL
526 B
JavaScript
const {crashReporter} = require('electron')
|
|
const bugsplat = require("bugsplat")
|
|
|
|
module.exports = {
|
|
Reporter: function() {
|
|
// Crash Reporter
|
|
crashReporter.start({
|
|
productName: process.env.Name,
|
|
submitURL: process.env.CrashReportServer,
|
|
})
|
|
|
|
const javaScriptErrorHandler = async (error) => {
|
|
// await bugsplat.post(error);
|
|
app.quit();
|
|
}
|
|
}
|
|
// If you want test the crash reporter, uncomment the code below and wait a few moments.
|
|
// setTimeout(() => {process.crash()}, 2400)
|
|
} |