'use strict';

const path = require('path');
const electron = require('electron');

const app = electron.app;
require('electron-debug')({ enabled: true });

let mainWindow;

function createMainWindow () {
  const win = new electron.BrowserWindow({
    title: app.getName(),
    height: 550,
    width: 960,
    backgroundColor: '#263238',
    icon: __dirname + '/assets/logo.png'
  });
  win.loadURL('file://' + __dirname + '/src/index.html');
  win.setMenu(null);
  return win;
}
app.on('ready', function() {
  mainWindow = createMainWindow();
});

app.on('window-all-closed', function() {
  app.quit();
});

@@ -8,16 +8,197 @@
 rict';%0A%0A
+let mainWindow;%0Aprocess.on('uncaughtException', function (e) %7B%0A  console.error(e);%0A  if (mainWindow && mainWindow.webContents) %7B%0A    mainWindow.webContents.openDevTools();%0A  %7D%0A%7D);%0A%0A
 const pa
@@ -284,16 +284,16 @@
 on.app;%0A
+
 require(
@@ -335,25 +335,8 @@
 );%0A%0A
-let mainWindow;%0A%0A
 func

add uncaught exception logging