text: 'use strict';
  const electron = require('electron');
  const app = electron.app;  // Module to control application life.
  const BrowserWindow = electron.BrowserWindow;  // Module to create native browser window.
  
  // Report crashes to our server.
  electron.crashReporter.start();
  
  
  
  // 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.
  let mainWindow;
  
  // Quit when all windows are closed.
  app.on('window-all-closed', function() {
    app.quit();
  });
  
  // This method will be called when Electron has finished
  // initialization and is ready to create browser windows.
  app.on('ready', function() {
    // Create the browser window.
  
    var electronScreen = electron.screen;
    var size = electronScreen.getPrimaryDisplay().workAreaSize;
    // var width = size.width;
    // if (size.width > 1162) {
    //   width = 1162;
    // }
    // else if (size.width > 1000) {
    //   width = 1000;
    // }
    mainWindow = new BrowserWindow({
      width: (size.width>1170 ? 1170 : (size.width>1000 ? 1000 : size.width)),
      height: Math.min(755, size.height)
    });  // 1000, 1162
  
    // and load the index.html of the app.
    // mainWindow.loadURL(`file://${__dirname}/index.html`);
    mainWindow.loadURL(`https://app.asana.com/`);
  
    // Open the DevTools.
    // mainWindow.webContents.openDevTools();
  
    // Emitted when the window is closed.
    mainWindow.on('closed', function() {
      // Dereference the window object, usually you would store windows
      // in an array if your app supports multi windows, this is the time
      // when you should delete the corresponding element.
      mainWindow = null;
    });
  });
  