mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2025-01-26 16:48:32 +00:00
Merge pull request #162 from iammarkoradak/development
Fix #159 FOUC with injected CSS files
This commit is contained in:
commit
266a239104
@ -113,7 +113,7 @@ function createMainWindow(options, onAppQuit, setDockBadge) {
|
|||||||
mainWindow.webContents.setUserAgent(options.userAgent);
|
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.send('params', JSON.stringify(options));
|
||||||
mainWindow.webContents.insertCSS(getCssToInject());
|
mainWindow.webContents.insertCSS(getCssToInject());
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user