Disable sentry, Ref: #158

This commit is contained in:
ziajka
2018-07-20 13:28:49 +02:00
parent fd606194b8
commit da49ac51e6
5 changed files with 116 additions and 72 deletions

11
main.js
View File

@ -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) {