electron/atom/browser/default_app/default_app.js

21 lines
447 B
JavaScript
Raw Normal View History

var app = require('app');
var BrowserWindow = require('browser-window');
var mainWindow = null;
// Quit when all windows are closed.
app.on('window-all-closed', function() {
app.quit();
});
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,
});
mainWindow.loadUrl('file://' + __dirname + '/index.html');
mainWindow.focus();
});