mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2024-12-18 20:47:51 +00:00
Reenable sentry
This commit is contained in:
parent
da49ac51e6
commit
88f6134092
@ -28,7 +28,7 @@ build_script:
|
||||
test: off
|
||||
|
||||
artifacts:
|
||||
- path: 'GNS3*.exe'
|
||||
- path: 'gns3-web-ui*.exe'
|
||||
name: gns3-web-ui
|
||||
|
||||
environment:
|
||||
|
@ -9,6 +9,6 @@ describe('gns3-web-ui App', () => {
|
||||
|
||||
it('should display title', () => {
|
||||
page.navigateTo();
|
||||
expect(page.getTitleText()).toEqual('GNS3 Web UI Demo');
|
||||
expect(page.getTitleText()).toEqual('GNS3 Web UI');
|
||||
});
|
||||
});
|
||||
|
2
main.js
2
main.js
@ -6,8 +6,6 @@ const path = require('path');
|
||||
const url = require('url');
|
||||
const yargs = require('yargs');
|
||||
|
||||
// require('./sentry');
|
||||
|
||||
// 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 mainWindow;
|
||||
|
38
sentry.js
38
sentry.js
@ -1,26 +1,26 @@
|
||||
// const { init } = require('@sentry/electron');
|
||||
// const fs = require('fs');
|
||||
// const { ipcMain } = require('electron');
|
||||
const { init } = require('@sentry/electron');
|
||||
const fs = require('fs');
|
||||
const { ipcMain } = require('electron');
|
||||
|
||||
// let crashReportsEnabled = true;
|
||||
// const DSN =
|
||||
// 'https://cb7b474b2e874afb8e400c47d1452ecc:7876224cbff543d992cb0ac4021962f8@sentry.io/1040940';
|
||||
let crashReportsEnabled = true;
|
||||
const DSN =
|
||||
'https://cb7b474b2e874afb8e400c47d1452ecc:7876224cbff543d992cb0ac4021962f8@sentry.io/1040940';
|
||||
|
||||
// const isDev = () => {
|
||||
// return fs.existsSync('.git');
|
||||
// };
|
||||
const isDev = () => {
|
||||
return fs.existsSync('.git');
|
||||
};
|
||||
|
||||
// const shouldSendCallback = () => {
|
||||
// return !isDev() && crashReportsEnabled;
|
||||
// };
|
||||
const shouldSendCallback = () => {
|
||||
return !isDev() && crashReportsEnabled;
|
||||
};
|
||||
|
||||
|
||||
// ipcMain.on('settings.changed', function (event, settings) {
|
||||
// crashReportsEnabled = settings.crash_reports;
|
||||
// });
|
||||
ipcMain.on('settings.changed', function (event, settings) {
|
||||
crashReportsEnabled = settings.crash_reports;
|
||||
});
|
||||
|
||||
|
||||
// init({
|
||||
// dsn: DSN,
|
||||
// shouldSendCallback: shouldSendCallback
|
||||
// });
|
||||
init({
|
||||
dsn: DSN,
|
||||
shouldSendCallback: shouldSendCallback
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user