diff --git a/electron/index.js b/electron/index.js index cc5974c..6c031aa 100644 --- a/electron/index.js +++ b/electron/index.js @@ -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.