text: const { app, BrowserWindow } = require('electron');
  const path = require('path');
  
  // Handle creating/removing shortcuts on Windows when installing/uninstalling.
  if (require('electron-squirrel-startup')) { // eslint-disable-line global-require
    app.quit();
  }
  
  function createWindow() {
    const mainWindow = new BrowserWindow({
      width: 600,
      height: 400,
      webPreferences: {
        preload: path.join(__dirname, 'preload.js'),
        nodeIntegration: true
      },
      icon: path.join(__dirname, '/assets/images/mooni.png')
    })
    mainWindow.removeMenu()
    mainWindow.loadFile(path.join(__dirname, 'index.html'));
  }
  
  app.whenReady().then(() => {
    createWindow()
    app.on('activate', function () {
      if (BrowserWindow.getAllWindows().length === 0) {
        createWindow()
      }
    })
  })
  
  app.on('window-all-closed', function () {
    if (process.platform !== 'darwin') {
      app.quit()
    }
  })
  