element-web/electron/src/electron-main.js
David Baker da30338aa7 BIGGER!
At the default window size, Riot starts with the left bar folded
down which is not ideal as a default.
2016-10-19 17:48:41 +01:00

19 lines
425 B
JavaScript

// @flow
const {app, BrowserWindow} = require('electron');
let window = null;
app.on('ready', () => {
window = new BrowserWindow({
icon: `${__dirname}/../../vector/img/logo.png`,
width: 1024, height: 768,
});
window.loadURL(`file://${__dirname}/../../vector/index.html`);
window.on('closed', () => {
window = null;
})
});
app.on('window-all-closed', () => {
app.quit();
});