Don't call the variable 'window'

This commit is contained in:
David Baker 2016-10-19 17:51:43 +01:00
parent da30338aa7
commit f20786226a

View file

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