diff --git a/js/crashReporter/index.js b/js/crashReporter/index.js deleted file mode 100755 index 786504a0..00000000 --- a/js/crashReporter/index.js +++ /dev/null @@ -1,47 +0,0 @@ -'use strict'; - -const {crashReporter} = require('electron'); - -let crashReporterDetails; -let crashDirectoryPath; - -/** - * Setup the crash reporter with appropriate information - * from the global config file - * @param detailObj: An object to send extra parameters - * via the crash reporter - */ -function setupCrashReporter(detailObj) { - - // App store builds cannot use crash reporter, so, exit if that's the case - if (process.platform === 'darwin' && process.mas) { - return - } - - if (process.type === 'renderer' && !(process.platform === 'darwin')) { - return; - } - - // If the crash reporter info is empty, exit - if (!crashReporterDetails){ - return - } - - let crashReportInfo = crashReporterDetails; - crashReportInfo.extra = detailObj; - crashReporter.start(crashReportInfo); - - crashDirectoryPath = crashReporter.getCrashesDirectory(); -} - -function setCrashReporterDetails(crashReporterInfo) { - crashReporterDetails = crashReporterInfo; -} - -function getCrashDirectoryPath() { - return crashDirectoryPath; -} - -exports.setupCrashReporter = setupCrashReporter; -exports.setCrashReporterDetails = setCrashReporterDetails; -exports.getCrashDirectoryPath = getCrashDirectoryPath; \ No newline at end of file diff --git a/js/main.js b/js/main.js index 8bd41664..3812d038 100644 --- a/js/main.js +++ b/js/main.js @@ -32,7 +32,7 @@ require('./memoryMonitor.js'); const windowMgr = require('./windowMgr.js'); -crashReporter.start({companyName: 'Symphony', uploadToServer: false, submitURL: 'http://localhost:3000/', extra: {'process': 'main'}}); +crashReporter.start({companyName: 'Symphony', uploadToServer: false, extra: {'process': 'main'}}); // only allow a single instance of app. const shouldQuit = app.makeSingleInstance((argv) => { diff --git a/js/preload/preloadMain.js b/js/preload/preloadMain.js index c01d7675..24777aa8 100644 --- a/js/preload/preloadMain.js +++ b/js/preload/preloadMain.js @@ -53,7 +53,7 @@ const throttledSetBadgeCount = throttle(1000, function(count) { }); }); -crashReporter.start({companyName: 'Symphony', uploadToServer: false, submitURL: 'http://localhost:3000/', extra: {'process': 'preload script / renderer'}}); +crashReporter.start({companyName: 'Symphony', uploadToServer: false, extra: {'process': 'preload script / renderer'}}); createAPI(); // creates API exposed from electron. diff --git a/js/windowMgr.js b/js/windowMgr.js index 19b5d80b..55e46f10 100644 --- a/js/windowMgr.js +++ b/js/windowMgr.js @@ -93,7 +93,7 @@ function doCreateMainWindow(initialUrl, initialBounds) { let url = initialUrl; let key = getGuid(); - crashReporter.start({companyName: 'Symphony', uploadToServer: false, submitURL: 'http://localhost:3000/', extra: {'process': 'renderer / window manager'}}); + crashReporter.start({companyName: 'Symphony', uploadToServer: false, extra: {'process': 'renderer / window manager'}}); log.send(logLevels.INFO, 'creating main window url: ' + url); let newWinOpts = {