text: 'use strict';
  const electron = require('electron'),
    app = electron.app,
    BrowserWindow = electron.BrowserWindow;
  
  var mainWindow = null;
  
  app.on('window-all-closed', function() {
    if (process.platform != 'darwin') {
      app.quit();
    }
  });
  
  app.on('ready', function() {
    mainWindow = new BrowserWindow({width: 1024, height: 768,webPreferences: { nodeIntegration: false }});
    mainWindow.loadURL('file://' + __dirname + '/index.html');
    mainWindow.on('closed', function() {
      mainWindow = null;
    });
  });
  