Fix white screen on electron app, Ref: #244

This commit is contained in:
ziajka
2019-01-04 12:57:58 +01:00
parent d7529e93fd
commit 218a2a511d
4 changed files with 237 additions and 201 deletions

View File

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