From e308b766a65e9da53d808dd82634af5e6b3342ca Mon Sep 17 00:00:00 2001 From: Korbs Studio Date: Fri, 24 Feb 2023 03:59:20 -0500 Subject: [PATCH] Disable Crash Reporter for macOS (Issue) --- electron/index.js | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) 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.