const { app, BrowserWindow } = require('electron');
let mainWindow;

function createWindow() {
  mainWindow = new BrowserWindow({
    width: 640,
    height: 640,
    transparent: true,
    frame: false,
    hasShadow: false,
    darkTheme: false,
    resizable: false,
    maximizable: false,
    minimizable: false,
    show: false,
    alwaysOnTop: true
  });

  mainWindow.loadFile('gm/index.html');

  // mainWindow.webContents.openDevTools();
}

app.on('ready', createWindow);

app.on('window-all-closed', function() {
  app.quit();
});
