Adjust initialize of sentry for electron on new lib version

This commit is contained in:
ziajka 2018-04-11 12:32:33 +02:00
parent 342e87e42e
commit dac8979ca3

View File

@ -1,4 +1,4 @@
const { SentryClient } = require('@sentry/electron');
const { init } = require('@sentry/electron');
const fs = require('fs');
const { ipcMain } = require('electron');
@ -20,7 +20,7 @@ ipcMain.on('settings.changed', function (event, settings) {
});
SentryClient.create({
init({
dsn: DSN,
shouldSendCallback: shouldSendCallback
});