2015-04-29 03:25:17 +00:00
|
|
|
var app = require('app');
|
|
|
|
var BrowserWindow = require('browser-window');
|
|
|
|
|
|
|
|
var mainWindow = null;
|
|
|
|
app.on('window-all-closed', function() {
|
|
|
|
app.quit();
|
|
|
|
});
|
|
|
|
app.on('ready', function() {
|
2015-11-05 02:34:35 +00:00
|
|
|
mainWindow = new BrowserWindow({width: 960, height: 660});
|
2015-04-29 03:25:17 +00:00
|
|
|
mainWindow.loadUrl('file://' + __dirname + '/index.html');
|
|
|
|
|
|
|
|
mainWindow.on('closed', function() {
|
|
|
|
mainWindow = null;
|
|
|
|
});
|
|
|
|
});
|