text: const {
      BrowserWindow
  } = require('electron')
  
  let win
  const createWindow = function () {
      win = new BrowserWindow({
          height: 768,
          width: 1366,
          frame: false,
          show: false,
          webPreferences: {
              nodeIntegration: true,
              contextIsolation: false
          }
      })
  
      win.on('ready-to-show', () => {
          win.show()
          win.webContents.openDevTools()
      })
  
      win.loadURL('http://localhost:8080/control')
  
      win.on('close', () => {
          win = null
      })
  
      return win
  }
  
  // IPC通信
  function send(event, data){
      win.webContents.send(event, data)
  }
  
  module.exports = {
      createWindow,
      send
  }