At the default window size, Riot starts with the left bar folded down which is not ideal as a default.
19 lines
425 B
JavaScript
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();
|
|
});
|