Fix base href for electron env

This commit is contained in:
ziajka
2019-01-04 10:58:35 +01:00
parent f4fbfe1ed3
commit d7529e93fd
3 changed files with 7 additions and 5 deletions

View File

@ -1,6 +1,7 @@
const { init } = require('@sentry/electron');
const fs = require('fs');
const { ipcMain } = require('electron');
const { ipcRenderer } = require('electron')
let crashReportsEnabled = true;
const DSN =
@ -15,7 +16,7 @@ const shouldSendCallback = () => {
};
ipcMain.on('settings.changed', function (event, settings) {
ipcRenderer.on('settings.changed', function (event, settings) {
crashReportsEnabled = settings.crash_reports;
});