Don't call the variable 'window'
This commit is contained in:
parent
da30338aa7
commit
f20786226a
1 changed files with 5 additions and 5 deletions
|
@ -1,16 +1,16 @@
|
||||||
// @flow
|
// @flow
|
||||||
const {app, BrowserWindow} = require('electron');
|
const {app, BrowserWindow} = require('electron');
|
||||||
|
|
||||||
let window = null;
|
let mainWindow = null;
|
||||||
|
|
||||||
app.on('ready', () => {
|
app.on('ready', () => {
|
||||||
window = new BrowserWindow({
|
mainWindow = new BrowserWindow({
|
||||||
icon: `${__dirname}/../../vector/img/logo.png`,
|
icon: `${__dirname}/../../vector/img/logo.png`,
|
||||||
width: 1024, height: 768,
|
width: 1024, height: 768,
|
||||||
});
|
});
|
||||||
window.loadURL(`file://${__dirname}/../../vector/index.html`);
|
mainWindow.loadURL(`file://${__dirname}/../../vector/index.html`);
|
||||||
window.on('closed', () => {
|
mainWindow.on('closed', () => {
|
||||||
window = null;
|
mainWindow = null;
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue