support default width/height of browser window (#257)

This commit is contained in:
Mike Kruk 2016-07-22 14:47:23 -04:00 committed by Guillermo Rauch
parent 1af99f1338
commit 68ea77c608

View file

@ -48,10 +48,11 @@ app.on('window-all-closed', () => {
app.on('ready', () => { app.on('ready', () => {
function createWindow (fn) { function createWindow (fn) {
const cfg = plugins.getDecoratedConfig(); const cfg = plugins.getDecoratedConfig();
const [width, height] = cfg.windowSize || [540, 380];
const browserDefaults = { const browserDefaults = {
width: 540, width,
height: 380, height,
minHeight: 190, minHeight: 190,
minWidth: 370, minWidth: 370,
titleBarStyle: 'hidden-inset', titleBarStyle: 'hidden-inset',