mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-02-06 11:10:16 +00:00
Adjust initialize of sentry for electron on new lib version
This commit is contained in:
parent
342e87e42e
commit
dac8979ca3
@ -1,4 +1,4 @@
|
|||||||
const { SentryClient } = require('@sentry/electron');
|
const { init } = require('@sentry/electron');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const { ipcMain } = require('electron');
|
const { ipcMain } = require('electron');
|
||||||
|
|
||||||
@ -20,7 +20,7 @@ ipcMain.on('settings.changed', function (event, settings) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
SentryClient.create({
|
init({
|
||||||
dsn: DSN,
|
dsn: DSN,
|
||||||
shouldSendCallback: shouldSendCallback
|
shouldSendCallback: shouldSendCallback
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user