text: /* eslint strict: 0 */
  'use strict';
  
  process.env.NODE_ENV = process.env.NODE_ENV || 'production';
  
  const electron = require('electron');
  const app = electron.app;
  const BrowserWindow = electron.BrowserWindow;
  let mainWindow = null;
  
  if (process.env.NODE_ENV === 'development') {
    require('electron-debug')();
  }
  
  
  app.on('window-all-closed', () => {
    if (process.platform !== 'darwin') app.quit();
  });
  
  
  app.on('ready', () => {
    mainWindow = new BrowserWindow({ width: 600, height: 760 });
  
    mainWindow.loadURL(`file://${__dirname}/app.html`);
  
    mainWindow.on('closed', () => {
      mainWindow = null;
    });
  
    if (process.env.NODE_ENV === 'development') {
      mainWindow.webContents.openDevTools({mode: 'detach'})
    }
    mainWindow.webContents.on('will-navigate', function(e) {
      e.preventDefault();
    });
  });
  