20 lines
438 B
JavaScript
20 lines
438 B
JavaScript
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() {
|
|
mainWindow = new BrowserWindow({
|
|
width: 800,
|
|
height: 600,
|
|
autoHideMenuBar: true,
|
|
useContentSize: true,
|
|
});
|
|
mainWindow.loadUrl('file://' + __dirname + '/index.html');
|
|
mainWindow.focus();
|
|
});
|