Disable Crash Reporter for macOS (Issue)
This commit is contained in:
parent
581ad16210
commit
e308b766a6
1 changed files with 12 additions and 7 deletions
|
@ -203,14 +203,19 @@ function createWindow () {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Crash Reporter
|
// Crash Reporter
|
||||||
crashReporter.start({
|
if (process.platform === 'darwin') {
|
||||||
productName: process.env.Name,
|
// Disable crash reporter
|
||||||
submitURL: process.env.CrashReportServer,
|
}
|
||||||
})
|
else {
|
||||||
|
crashReporter.start({
|
||||||
|
productName: process.env.Name,
|
||||||
|
submitURL: process.env.CrashReportServer,
|
||||||
|
})
|
||||||
|
|
||||||
const javaScriptErrorHandler = async (error) => {
|
const javaScriptErrorHandler = async (error) => {
|
||||||
await bugsplat.post(error);
|
await bugsplat.post(error);
|
||||||
app.quit();
|
app.quit();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// If you want test the crash reporter, uncomment the code below and wait a few moments.
|
// If you want test the crash reporter, uncomment the code below and wait a few moments.
|
||||||
|
|
Reference in a new issue