16 lines
383 B
JavaScript
16 lines
383 B
JavaScript
var app = require('app');
|
|
var BrowserWindow = require('browser-window');
|
|
|
|
var mainWindow = null;
|
|
app.on('window-all-closed', function() {
|
|
app.quit();
|
|
});
|
|
app.on('ready', function() {
|
|
mainWindow = new BrowserWindow({width: 1190, height: 780});
|
|
mainWindow.loadUrl('file://' + __dirname + '/index.html');
|
|
|
|
mainWindow.on('closed', function() {
|
|
mainWindow = null;
|
|
});
|
|
});
|