Skip to content

Commit

Permalink
add crash reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed Oct 8, 2022
1 parent b5c4af9 commit 7214210
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/background.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

import { app, protocol, ipcMain, powerSaveBlocker } from 'electron';
import { app, crashReporter, protocol, ipcMain, powerSaveBlocker } from 'electron';
import log from 'electron-log';
import installExtension, { VUEJS3_DEVTOOLS } from 'electron-devtools-installer';

Expand All @@ -10,6 +10,11 @@ import { shutdownDaemon } from './background/daemon';
import { attachIPC } from './background/ipc';
const isDevelopment = process.env.NODE_ENV !== 'production';

crashReporter.start({
submitURL: 'https://crash.siacentral.com',
uploadToServer: false
});

// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
let powerSaveID;
Expand Down

0 comments on commit 7214210

Please sign in to comment.