2013-07-17 08:21:33 +00:00
|
|
|
var app = require('app');
|
|
|
|
var BrowserWindow = require('browser-window');
|
|
|
|
|
|
|
|
var mainWindow = null;
|
|
|
|
|
|
|
|
// Quit when all windows are closed.
|
|
|
|
app.on('window-all-closed', function() {
|
2014-04-10 07:08:14 +00:00
|
|
|
app.quit();
|
2013-07-17 08:21:33 +00:00
|
|
|
});
|
|
|
|
|
2013-12-27 03:08:26 +00:00
|
|
|
app.on('ready', function() {
|
2014-05-15 07:29:53 +00:00
|
|
|
mainWindow = new BrowserWindow({
|
|
|
|
width: 800,
|
|
|
|
height: 600,
|
2014-10-17 08:43:37 +00:00
|
|
|
'auto-hide-menu-bar': true,
|
2014-05-15 07:29:53 +00:00
|
|
|
'use-content-size': true,
|
|
|
|
});
|
2013-07-17 08:21:33 +00:00
|
|
|
mainWindow.loadUrl('file://' + __dirname + '/index.html');
|
2014-09-09 10:33:36 +00:00
|
|
|
mainWindow.focus();
|
2013-07-17 08:21:33 +00:00
|
|
|
});
|