From ebb0b7f1d22f7ddbd534c52625716d7979c8ca5b Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Sat, 16 Jul 2016 11:58:41 -0700 Subject: [PATCH] index: allow plugin authors to affect initial config --- index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index cdb7ceb1..16574c41 100644 --- a/index.js +++ b/index.js @@ -44,14 +44,15 @@ let winCount = 0; app.on('ready', () => { function createWindow (fn) { - let win = new BrowserWindow({ + const cfg = plugins.getDecoratedConfig(); + const win = new BrowserWindow({ width: 540, height: 380, minHeight: 190, minWidth: 370, titleBarStyle: 'hidden-inset', title: 'HyperTerm', - backgroundColor: toHex(config.getConfig().backgroundColor || '#000'), + backgroundColor: toHex(cfg.backgroundColor || '#000'), transparent: true, // we only want to show when the prompt // is ready for user input