From 68ea77c608924da12e92fa145b0fba8783f8523b Mon Sep 17 00:00:00 2001 From: Mike Kruk Date: Fri, 22 Jul 2016 14:47:23 -0400 Subject: [PATCH] support default width/height of browser window (#257) --- index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index d95c19e4..0ba5262c 100644 --- a/index.js +++ b/index.js @@ -48,10 +48,11 @@ app.on('window-all-closed', () => { app.on('ready', () => { function createWindow (fn) { const cfg = plugins.getDecoratedConfig(); + const [width, height] = cfg.windowSize || [540, 380]; const browserDefaults = { - width: 540, - height: 380, + width, + height, minHeight: 190, minWidth: 370, titleBarStyle: 'hidden-inset',