2013-07-17 16:21:33 +08: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 15:08:14 +08:00
|
|
|
app.quit();
|
2013-07-17 16:21:33 +08:00
|
|
|
});
|
|
|
|
|
2013-12-27 11:08:26 +08:00
|
|
|
app.on('ready', function() {
|
2014-05-15 15:29:53 +08:00
|
|
|
mainWindow = new BrowserWindow({
|
|
|
|
width: 800,
|
|
|
|
height: 600,
|
2014-10-17 16:43:37 +08:00
|
|
|
'auto-hide-menu-bar': true,
|
2014-05-15 15:29:53 +08:00
|
|
|
'use-content-size': true,
|
|
|
|
});
|
2013-07-17 16:21:33 +08:00
|
|
|
mainWindow.loadUrl('file://' + __dirname + '/index.html');
|
2014-09-09 18:33:36 +08:00
|
|
|
mainWindow.focus();
|
2013-07-17 16:21:33 +08:00
|
|
|
});
|