mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-05-04 09:43:01 +00:00
Reenable sentry
This commit is contained in:
parent
da49ac51e6
commit
88f6134092
@ -28,7 +28,7 @@ build_script:
|
|||||||
test: off
|
test: off
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
- path: 'GNS3*.exe'
|
- path: 'gns3-web-ui*.exe'
|
||||||
name: gns3-web-ui
|
name: gns3-web-ui
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
|
@ -9,6 +9,6 @@ describe('gns3-web-ui App', () => {
|
|||||||
|
|
||||||
it('should display title', () => {
|
it('should display title', () => {
|
||||||
page.navigateTo();
|
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 url = require('url');
|
||||||
const yargs = require('yargs');
|
const yargs = require('yargs');
|
||||||
|
|
||||||
// require('./sentry');
|
|
||||||
|
|
||||||
// Keep a global reference of the window object, if you don't, the window will
|
// 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.
|
// be closed automatically when the JavaScript object is garbage collected.
|
||||||
let mainWindow;
|
let mainWindow;
|
||||||
|
38
sentry.js
38
sentry.js
@ -1,26 +1,26 @@
|
|||||||
// const { init } = require('@sentry/electron');
|
const { init } = require('@sentry/electron');
|
||||||
// const fs = require('fs');
|
const fs = require('fs');
|
||||||
// const { ipcMain } = require('electron');
|
const { ipcMain } = require('electron');
|
||||||
|
|
||||||
// let crashReportsEnabled = true;
|
let crashReportsEnabled = true;
|
||||||
// const DSN =
|
const DSN =
|
||||||
// 'https://cb7b474b2e874afb8e400c47d1452ecc:7876224cbff543d992cb0ac4021962f8@sentry.io/1040940';
|
'https://cb7b474b2e874afb8e400c47d1452ecc:7876224cbff543d992cb0ac4021962f8@sentry.io/1040940';
|
||||||
|
|
||||||
// const isDev = () => {
|
const isDev = () => {
|
||||||
// return fs.existsSync('.git');
|
return fs.existsSync('.git');
|
||||||
// };
|
};
|
||||||
|
|
||||||
// const shouldSendCallback = () => {
|
const shouldSendCallback = () => {
|
||||||
// return !isDev() && crashReportsEnabled;
|
return !isDev() && crashReportsEnabled;
|
||||||
// };
|
};
|
||||||
|
|
||||||
|
|
||||||
// ipcMain.on('settings.changed', function (event, settings) {
|
ipcMain.on('settings.changed', function (event, settings) {
|
||||||
// crashReportsEnabled = settings.crash_reports;
|
crashReportsEnabled = settings.crash_reports;
|
||||||
// });
|
});
|
||||||
|
|
||||||
|
|
||||||
// init({
|
init({
|
||||||
// dsn: DSN,
|
dsn: DSN,
|
||||||
// shouldSendCallback: shouldSendCallback
|
shouldSendCallback: shouldSendCallback
|
||||||
// });
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user