1
Fork 0

Disable Crash Reporter for macOS (Issue)

This commit is contained in:
Korbs Studio 2023-02-24 03:59:20 -05:00
parent 581ad16210
commit e308b766a6

View file

@ -203,14 +203,19 @@ function createWindow () {
}
// Crash Reporter
crashReporter.start({
productName: process.env.Name,
submitURL: process.env.CrashReportServer,
})
if (process.platform === 'darwin') {
// Disable crash reporter
}
else {
crashReporter.start({
productName: process.env.Name,
submitURL: process.env.CrashReportServer,
})
const javaScriptErrorHandler = async (error) => {
await bugsplat.post(error);
app.quit();
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.