mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-16 05:48:10 +00:00
Disable sentry, Ref: #158
This commit is contained in:
11
main.js
11
main.js
@ -6,7 +6,7 @@ const path = require('path');
|
||||
const url = require('url');
|
||||
const yargs = require('yargs');
|
||||
|
||||
require('./sentry');
|
||||
// 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.
|
||||
@ -70,7 +70,13 @@ const exitServerProc = () => {
|
||||
|
||||
function createWindow () {
|
||||
// Create the browser window.
|
||||
mainWindow = new BrowserWindow({width: 800, height: 600});
|
||||
mainWindow = new BrowserWindow({
|
||||
width: 800,
|
||||
height: 600,
|
||||
webPreferences: {
|
||||
preload: path.join(__dirname, 'sentry.js')
|
||||
}
|
||||
});
|
||||
|
||||
// and load the index.html of the app.
|
||||
|
||||
@ -83,6 +89,7 @@ function createWindow () {
|
||||
protocol: 'file:',
|
||||
slashes: true
|
||||
}));
|
||||
mainWindow.maximize();
|
||||
}
|
||||
|
||||
if(argv.d) {
|
||||
|
Reference in New Issue
Block a user