text: /* jshint undef: false */
  "use strict";
  
  const electron = require('electron');
  const {BrowserWindow, app} = electron;
  let mainWindow = null;
  
  app.on('window-all-closed', function onWindowAllClosed() {
      app.quit();
  });
  
  app.on('ready', function onReady() {
      mainWindow = new BrowserWindow({
          width: 800,
          height: 600,
          backgroundThrottling: false
      });
  
      delete mainWindow.module;
  
      if (process.env.EMBER_ENV === 'test') {
          mainWindow.loadURL('file://' + __dirname + '/index.html?coverage');
      } else {
          mainWindow.loadURL('file://' + __dirname + '/dist/index.html');
      }
  
      mainWindow.on('closed', function onClosed() {
          mainWindow = null;
      });
  });
  
  /* jshint undef: true */
  