summaryrefslogtreecommitdiffstats
path: root/main.js
blob: 2b33bdb24b8f64d19ee09c858952ac765931063a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
const { app, BrowserWindow } = require('electron');

app.on('ready', () => {
  let win = new BrowserWindow({
    webPreferences: { nodeIntegration: true },
    autoHideMenuBar: true,
  });

  // and load the index.html of the app.
  win.loadFile('index.html');
});


app.on('window-all-closed', () => {
  // On macOS it is common for applications and their menu bar
  // to stay active until the user quits explicitly with Cmd + Q
  if (process.platform !== 'darwin')
    app.quit();
});