1
Fork 0
This repository has been archived on 2024-05-27. You can view files and clone it, but cannot push or open issues or pull requests.
Nexus-Polestar/electron/crashreporter.js

19 lines
568 B
JavaScript
Raw Normal View History

2023-03-30 21:53:16 -04:00
const {crashReporter} = require('electron')
const bugsplat = require("bugsplat")
module.exports = {
Reporter: function() {
// Crash Reporter
crashReporter.start({
2023-07-10 08:14:44 -04:00
productName: process.env.Name, // Edit this in .env
submitURL: process.env.CrashReportServer, // Edit this in .env
2023-03-30 21:53:16 -04:00
})
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)
}