19 lines
No EOL
568 B
JavaScript
19 lines
No EOL
568 B
JavaScript
const {crashReporter} = require('electron')
|
|
const bugsplat = require("bugsplat")
|
|
|
|
module.exports = {
|
|
Reporter: function() {
|
|
// Crash Reporter
|
|
crashReporter.start({
|
|
productName: process.env.Name, // Edit this in .env
|
|
submitURL: process.env.CrashReportServer, // Edit this in .env
|
|
})
|
|
|
|
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)
|
|
} |