From ef5caeeb091cc7e8a823606f86e7aa8524645e40 Mon Sep 17 00:00:00 2001 From: Philippe Potvin Date: Mon, 19 Dec 2016 11:17:26 -0500 Subject: [PATCH] Reset bgColor (#1262) * Reset bgColor * remove unused * add precisions comments --- app/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/index.js b/app/index.js index 7a2c7187..f32ff0fa 100644 --- a/app/index.js +++ b/app/index.js @@ -174,13 +174,13 @@ app.on('ready', () => installDevExtensions(isDev).then(() => { } // update background color if necessary - win.setBackgroundColor(toElectronBackgroundColor(cfg_.backgroundColor || '#000')); - cfg = cfg_; }); rpc.on('init', () => { - win.show(); + // we update the backgroundColor once the init is called. + // when we do a win.reload() we need need to reset the backgroundColor + win.setBackgroundColor(toElectronBackgroundColor(cfg.backgroundColor || '#000')); // If no callback is passed to createWindow, // a new session will be created by default.