From eeb661b6cd82a3f21f5adbf0d1389cf2804fd16b Mon Sep 17 00:00:00 2001 From: Marko Radak Date: Mon, 14 Mar 2016 07:39:41 +0100 Subject: [PATCH] Fix FOUC with inject CSS files --- app/src/components/mainWindow/mainWindow.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/components/mainWindow/mainWindow.js b/app/src/components/mainWindow/mainWindow.js index 1651f22..6ac236c 100644 --- a/app/src/components/mainWindow/mainWindow.js +++ b/app/src/components/mainWindow/mainWindow.js @@ -113,7 +113,7 @@ function createMainWindow(options, onAppQuit, setDockBadge) { mainWindow.webContents.setUserAgent(options.userAgent); } - mainWindow.webContents.on('did-finish-load', () => { + mainWindow.webContents.on('did-get-response-details', () => { mainWindow.webContents.send('params', JSON.stringify(options)); mainWindow.webContents.insertCSS(getCssToInject()); });