2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-11-10 15:21:03 +00:00

Fix FOUC with inject CSS files

This commit is contained in:
Marko Radak 2016-03-14 07:39:41 +01:00
parent aeddcea4cb
commit eeb661b6cd

View File

@ -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());
});